UNPKG
react-head
Version:
latest (3.4.2)
next (3.3.0-0)
3.4.2
3.4.1
3.4.0
3.3.0
3.3.0-0
3.2.0-0
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
3.0.0-1
3.0.0-0
2.2.0
2.1.0
2.0.0
1.2.0
1.1.0
1.0.1
1.0.0
0.1.0
SSR-ready Document Head management for React 16+
github.com/tizmagik/react-head
tizmagik/react-head
react-head
/
src
/
headTagsContext.js
9 lines
(7 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
*
as
React
from
'react'
;
export
const
{
Consumer
,
Provider
} =
React
.
createContext
({
// on client we don't require HeadCollector
list
: [],
addClientTag
:
() =>
-
1
,
addServerTag
:
() =>
{}, });