Skip to content

Releases: tizmagik/react-head

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

25 Dec 14:10
Compare
Choose a tag to compare

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

10 Oct 19:20
Compare
Choose a tag to compare

Fixes React 16 Warning in #9 -- thanks to @gaearon for the tip! 🎉

v1.1.0 - Performance optimization

09 Oct 16:52
Compare
Choose a tag to compare

🔥 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

09 Oct 05:06
Compare
Choose a tag to compare

Fix usage with <HeadTag tag="title">Title here</HeadTag> -- they were not being cleaned up properly on the client, now they are 😁

Initial release 🎉

09 Oct 05:04
Compare
Choose a tag to compare
v1.0.0

1.0.0