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)

/react-with-body-classname/

    Package Sidebar

    Install

    npm i react-with-body-classname

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • rusinov