React Context
- Engagement Properties - AdBlock and Focus
- Display Properties - Density, Scroll, Width and Height
- Device Properties - Language, OS, Browser and Browser Version
var React = ;var context = ; var Component = React;
Installation & Usage
npm install react-context --save
Wrap Root
Wrap your top-most component with react-context
.
var React = ;var context = ; var Root = React; moduleexports = ;
Set Types
Pass it an array of types you want to subscribe to, or call it with no arguments to subscribe to all of them.
// Subscribe to scroll and adBlockChildcontextTypes = context; // Subscribe to every contextChildcontextTypes = context;