JSPM

react-range-proptypes

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 611
  • Score
    100M100P100Q140406F
  • License MIT

react range proptypes

Package Exports

  • react-range-proptypes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-range-proptypes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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