Releases: tizmagik/react-head
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
.
v1.2.0: Fixes React 16 Warning
v1.1.0 - Performance optimization
🔥 Slight performance optimization, instead of document.querySelector()
we now do document.head.querySelector()
since tags are only added to document.head
anyway.
This is a non-breaking change and shouldn't affect any usage.
v1.0.1 - Fix usage with title
Fix usage with <HeadTag tag="title">Title here</HeadTag>
-- they were not being cleaned up properly on the client, now they are 😁
Initial release 🎉
v1.0.0 1.0.0