Prevent scroll on the <body />
when component is mounted.
npm install --save react-scrolllock
import ScrollLock from 'react-scrolllock';
class Modal extends Component {
render () {
return (
<div>
...
<ScrollLock />
</div>
)
}
}