react-range-proptypes

1.0.0 • Public • Published

Install

npm install react-range-proptypes

Usage

import { range } from 'react-range-proptypes';

class Component extends React.Component {
    render() {
        return (
            <div>
                {a + b}
            </div>
        );
    }
}

Component.propTypes = {
    a : range(0, 1),
    b : range(0, 1).isRequired
};

Readme

Keywords

Package Sidebar

Install

npm i react-range-proptypes

Weekly Downloads

580

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mrcheater