dillon1000/react

Commit

Add PropTypes.checkPropTypes API

Allows users to check arbitrary objects against React prop types without
relying on the implementation details of the prop validators themselves.
An example of why this is important: some prop validators may throw,
while others return an error object. Calling a prop validator manually
requires handling both cases. `checkPropTypes` does this for you.
Browse files
Changed paths3 files
First-parent comparison
M src/isomorphic/classic/types/ReactPropTypes.js ModifiedM src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js ModifiedM src/shared/types/checkReactTypeSpec.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…