dillon1000/react

Commit

Fix PropTypes.{oneOf, oneOfType} validation

Follow-up to #3963. (Returning an Error wasn't useful; it just caused a later error when actually using it because type checkers need to be functions.)
Browse files
Changed paths2 files
First-parent comparison
M src/isomorphic/classic/types/ReactPropTypes.js ModifiedM src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…