prop-types-exact
For use with React PropTypes. Will error on any prop not explicitly specified.
Usage
import PropTypes from 'prop-types';import exact from 'prop-types-exact'; { return <div>foobar</div>}FoopropTypes = ; <Foo ="hi" = /> // no warnings <Foo ="hi" = ="extra" /> // propTypes warning!
Tests
Simply clone the repo, npm install
, and run npm test