react.dev
react.dev copied to clipboard
Documentation: Clarifying described behavior for ref callbacks
trafficstars
Existing Issue: #7811
Page Common components
Changes
Old
New
These changes:
- Emphasize the modern cleanup pattern (which matches the code example)
- Clarify that cleanup functions are called instead of passing null
- Note the legacy behavior as secondary information