react-freeze-body
v1.2.1
Published
Apply overflow hidden to the document.body the react way.
Downloads
14
Maintainers
Readme
react-freeze-body
Add overflow: hidden;
to the document.body
, the react way.
Pass html
in as a prop to conditionally freeze html too!
Install
$ npm install react-freeze-body --save
Usage
import ReactFreezeBody from 'react-freeze-body'
render () {
return (
<ReactFreezeBody />
)
}
MIT © Jack Hanford