Skip to content

v2.0.0 - Supports other rendering modes besides renderToString()

Compare
Choose a tag to compare
@tizmagik tizmagik released this 25 Dec 14:10
· 68 commits to master since this release

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.