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