v2.0.0 - Supports other rendering modes besides renderToString()
In #18 thanks to @Maarten88 and @jamesjjk for the assist ( #17 ) react-head
now supports streaming methods other than just renderToString()
such as renderToStaticMarkup()
and renderToStaticNodeStream()
🎉
It does this by adding its own data-rh
attribute to each head tag so it can safely remove the ones inserted during SSR on the server (for SPA functionality on the client).
Major version bump in case users had been relying on data-reactroot
or not expecting data-rh
.