@mistadikay/react-scrolllock
v1.0.5
Published
Prevent scroll on the body when component is mounted.
Downloads
2
Maintainers
Readme
React Scroll Lock
Prevent scroll on the <body />
when component is mounted.
Usage
npm install --save react-scrolllock
import ScrollLock from 'react-scrolllock';
class Modal extends Component {
render () {
return (
<div>
...
<ScrollLock />
</div>
)
}
}