dillon1000/react
Commit
Browse files Add warning to prevent setting this.state to this.props referentially (#11658)
* add test to warn if setting this.state to this.props referentially * Avoid an extra check
Changed paths2 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactComponentLifeCycle-test.js ModifiedM packages/react-reconciler/src/ReactFiberClassComponent.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…