dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonsrc/isomorphic/classic/types/ReactPropTypes.js ModifiedM src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js ModifiedM src/shared/types/checkReactTypeSpec.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…