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