You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using document reference in the render method will throw an error
on React.renderToString call on the server side.
See react-bootstrap#717.
The proper solution is to remove document.querySelector check. Obviously
we cant detect this feature on the server side, besides it leads to
differencies btw server and client side rendering output, so React will warn
about it, ex:
1. `render` on the server side will apply classes: `modal fade`
2. `render` on the client side will apply clasess: `modal fade in`
Also karma test environment is not suitable for testing server side rendering,
so mocha test run againt nodejs was added.
0 commit comments