react-with-body-classname

1.1.2 • Public • Published

react-with-body-classname

High order component that applies className to the <body/>
whether given component is mounted

Usage:

import withBodyClassName from 'react-with-body-classname'


class MyComponent extends React.Component {}

export default withBodyClassName('page--hasMyComponent')(MyComponent)

Package Sidebar

Install

npm i react-with-body-classname

Weekly Downloads

5

Version

1.1.2

License

MIT

Last publish

Collaborators

  • rusinov