react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Documentation: Clarifying described behavior for ref callbacks

Open charissakau opened this issue 5 months ago • 2 comments
trafficstars

Existing Issue: #7811

Page Common components

Changes Old Screenshot 2025-06-03 at 5 28 34 PM

New Screenshot 2025-06-03 at 5 22 18 PM

These changes:

  1. Emphasize the modern cleanup pattern (which matches the code example)
  2. Clarify that cleanup functions are called instead of passing null
  3. Note the legacy behavior as secondary information

charissakau avatar Jun 04 '25 00:06 charissakau