Closed kitten closed 7 years ago
I dug through the commit history and actually found the commit that was adding this 😄
https://github.com/FormidableLabs/component-playground/commit/2eaedb4
I actually managed to get this to work by wrapping the element differently, in some separate code I'm experimenting with, so I'd imagine that this should be solvable without ReactDOMServer
:
https://github.com/philpl/rxjs-guide/blob/master/utils/transpile.js#L16
Well, this is late, but the reason I use render to string is to catch runtime render errors. I can probably use boundaries now though.
I noticed that in the
Preview
the generated component is being rendered to a string, but the result is never actually used. I'm wondering if this is this on purpose, since ReactDOM/Server further contributes to the bundle size?https://github.com/FormidableLabs/component-playground/blob/master/src/components/preview.jsx#L81