Not Providing Milkshakes

    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)
    

    Install

    npm i react-with-body-classname

    DownloadsWeekly Downloads

    7

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • rusinov