ReactDOMServer.renderToNodeStream() ready component to manage document.head
npm install react-head-tagsReactDOMServer.renderToNodeStream() ready component to manage document.head
```
npm install react-head-tags --save
`js
import React from 'react'
import { renderToNodeStream } from 'react-dom/server'
import { HeadManager, HeadTags } from 'react-head-tags'
let headTags
const contentStream = renderToNodeStream(
headTags = tags
}}
>
,
)
`
Note that head tags are not collected before the app is rendered,
e.g. headTags is undefined until contentStream` is finished in the above example.