0.3.0 • Published 8 years ago

body-style v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

<BodyStyle>

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

Install the component using NPM:

$ npm install --save body-style

Usage

  1. Import Custom Element:

    import BodyStyle from 'body-style';
  2. Start using it!

    render() {
      <div>
        <BodyStyle style={{backgroundColor: '#FFCC00'}} className="yourComponentClass" />
        ...
      </div>
    }

License

MIT License