@biruk/react-scrolllock

    1.0.9 • Public • Published

    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>
        )
      }
    }

    Install

    npm i @biruk/react-scrolllock

    DownloadsWeekly Downloads

    2

    Version

    1.0.9

    License

    MIT

    Last publish

    Collaborators

    • biruk