Remix example uses renderToString #408
Unanswered
jamesarosen
asked this question in
Q&A
Replies: 1 comment
-
Thank you for the heads-up. I will adjust the remix example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Remix example app uses
react-dom/server
'srenderToString
, which causes Remix to render the whole page to a string server-side.The example in remix-run/examples uses
renderToPipeableStream
.As far as I can tell,
inline
itself consumes the input buffer (or string) so it can extract styles and write the<style>
tag.Is one approach preferred over the other? Why?
Possibly related: #147
Beta Was this translation helpful? Give feedback.
All reactions