-
Notifications
You must be signed in to change notification settings - Fork 49.1k
Closed
Description
With the checkin of #10362, the code to render to a stream now looks like:
import { renderToStream } from 'react-dom/server'
renderToStream(<div>some text</div>).pipe(response);
This is great! I am, however, a little concerned about taking the word "node" out of the mix, because I'm thinking that we may eventually want to render to browser streams, which are a really neat feature that can be used in concert with "service-worker-side rendering". I would propose renaming renderToStream
to renderToNodeStream
and renderToStaticStream
to renderToStaticNodeStream
. This would give room for renderToBrowserStream
in the future.
If I make a PR on this, would it have a chance of being accepted?
cc @gaearon & @sebmarkbage
aweary and andregoncalvesdev
Metadata
Metadata
Assignees
Labels
No labels