Is data-reactroot relevant to the hydrate function in React?
问题 I was trying to understand what's the difference between ReactDOMServer.renderToString() and ReactDOMServer.renderToStaticMarkup() on React 16.8.6. This is what I understood: renderToStaticMarkup() is used on the server side when you just want to render the markup and don't want to hydrate it on the client side. (https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup) renderToString() is used on the server side when you want to use the ReactDOM.hydrate() function to hydrate the