react-scroll-lock

1.0.0 • Public • Published

react-scroll-lock

Scroll lock mixin for React components

Usage

Simply add mixin in component, witch be lock inner scroll.

var ScrollLock = require('react-scroll-lock');
 
React.createClass({
    mixins : [
        ScrollLock
    ],
 
    render : function() {
        return (
            <div> ... </div>
        )
    }
})
 

Package Sidebar

Install

npm i react-scroll-lock

Weekly Downloads

52

Version

1.0.0

License

MIT

Last publish

Collaborators

  • laiff