dillon1000/react
Commit
Browse files Add ref callback test for cleanup fn vs null call (#28895)
Used this test scenario to clarify how callback refs work when detached based on the availability of a cleanup function to update documentation in https://github.com/reactjs/react.dev/pull/6770 Checking it in for additional test coverage and test-based documentation
Changed paths1 file
First-parent comparisonpackages/react-dom/src/__tests__/refs-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…