First of all, many thanks for react-server! It is really amazing!
My question is: how does react-server achieve stream pre-rendered HTML?
I noticed that react-server uses ReactDOMServer.renderToString rather than renderToNodeStream. It seems for me that it is impossible to get stream pre-rendered HTML(I probably get wrong).
I also noticed that you mentioned "react-server has the concept of a RootElement, by RootElement we can get stream pre-rendered HTML". As far as I know, when you use renderToString and get the html string then make a response to client, the request is already finished. (Or use http 2.0 server push?). So how does stream come?
I am new to SSR, and don't know much details about Big-pipe. Please forgive me if the question is strange.