Code originally came from documentation of react-side-effect. We simply add support for className and make it pass lint
Update your body class or style in your ReactJs Flux
Install the component using NPM:
$ npm install --save body-style
-
Import Custom Element:
import BodyStyle from 'body-style';
-
Start using it!
render() { <div> <BodyStyle style={{backgroundColor: '#FFCC00'}} className="yourComponentClass" /> ... </div> }