Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 706 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 706 Bytes

<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