redbox-react
redbox-react copied to clipboard
[SSR] renderToString returns <!-- react-empty: 1 -->
[email protected] ~ 1.5.0
Has this problem been solved? https://github.com/commissure/redbox-react/pull/99 I've tried [email protected] ~ 1.5.0, ssr always returns <!-- react-empty: 1 -->
const RedBox = require('redbox-react').default;
content = renderToString(<RedBox error={new Error()} />);
console.log(content); // <!-- react-empty: 1 -->
Never mind, this works.
const RedBox = require('redbox-react').RedBoxError;
content = renderToString(<RedBox error={e} />);
Could we re-open this? I'd like to use the default
module instead of the actual redbox component. Right now, I'm ending up with an empty content string ([email protected] and [email protected])
Confirmed empty content string ([email protected] and [email protected]) with @kimjuny's first example, and that the second example is working.