dillon1000/react

Commit

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.*`.
Browse files
Changed paths4 files
First-parent comparison
M src/core/React.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/__tests__/ReactCompositeComponent-test.js ModifiedM src/core/__tests__/ReactDOM-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…