dillon1000/react
Commit
Browse files Updated misleading error message in production environment when adding ref to a functional component (#11761) (#11782)
* Updated misleading error message in production environment when adding ref to a functional component * Reverted changes to codes.json * Updated error message
Changed paths4 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactStatelessComponent-test.js ModifiedM packages/react-dom/src/__tests__/multiple-copies-of-react-test.js ModifiedM packages/react-dom/src/__tests__/refs-test.js ModifiedM packages/react-reconciler/src/ReactChildFiber.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…