dillon1000/react

Commit

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
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/__tests__/refs-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…