dillon1000/react
Commit
Browse files React.isValidClass
Sometimes you may need to detect if a value is a valid React class constructor. This enables that and prevents future consumers from getting caught in the trap of depending on an internal implementation detail we might change. Currently this works for classes created with `React.createClass` as well as `React.DOM.*`.
Changed paths4 files
First-parent comparisonsrc/core/React.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/__tests__/ReactCompositeComponent-test.js ModifiedM src/core/__tests__/ReactDOM-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…