dillon1000/react
Commit
Browse files isReactClass -> .prototype.isReactComponent
Put the flag on the prototype instead to help certain limited forms of class extensions that doesn't properly transfer static properties. Fixes #4836
Changed paths5 files
First-parent comparisonsrc/isomorphic/classic/class/ReactClass.js ModifiedM src/isomorphic/modern/class/ReactComponent.js ModifiedM src/renderers/dom/client/ReactMount.js ModifiedM src/renderers/shared/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…