dillon1000/react

Commit

Merge pull request #5406 from acdlite/better-error-message-for-setState-in-constructor

Updates the warning that is displayed when `setState` is called within either `render` or a component constructor.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/shared/reconciler/ReactUpdateQueue.js ModifiedM src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…