5 ms·
I just tried the new release. The data-reactid is indeed gone when rendering on the client side. But on the server side, the html string generate by ReactDOMSer
by CalmStorm 11y ago
I just tried the new release. The data-reactid is indeed gone when rendering on the client side. But on the server side, the html string generate by ReactDOMServer.renderToString still has data-reactid. Is it because client side can validate the server result and decide if it needs to re-render the page?
- spicyj 11y agoNot quite -- it's so that the client can know which node is which. (When rendering on the client, it can just store a direct reference to each created node.)