1.1.2 • Published 7 years ago

react-with-body-classname v1.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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)