dillon1000/react

Commit

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
Browse files
Changed paths4 files
First-parent comparison
M packages/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…