dillon1000/react

Commit

Warning message updated if defaultProps were defined as an instance property (#9493)

* Updated the warning message for setting defaultProps on instance property.

* Updated the testcases for the defaultProps warning.

* Updated the warning message for defaultProps set on instance property.
Browse files
Changed paths3 files
First-parent comparison
M src/renderers/__tests__/ReactCompositeComponent-test.js ModifiedM src/renderers/shared/fiber/ReactFiberClassComponent.js ModifiedM src/renderers/shared/stack/reconciler/ReactCompositeComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…