dillon1000/react
Commit
Browse files A new prop type for React Components
Since we can use props to pass React Components, we should have a better way of validating these props than just `object`. Having a prop type `component` will allow us to safely assume that the passed prop IS a component.
Changed paths2 files
First-parent comparisonsrc/core/ReactPropTypes.js ModifiedM src/core/__tests__/ReactPropTypes-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…