Skip to content

Commit

Permalink
Reworded for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcarrollcode committed Dec 21, 2024
1 parent bad34fc commit dc3b62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/components/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export default function MyForm() {

</Sandpack>

To fix the hanging ref to the DOM node that is no longer rendered set the `ref.current` to `null` in the ref callback cleanup function.
To fix the hanging ref to the DOM node that is no longer rendered, set `ref.current` to `null` in the `ref` callback cleanup function.

```js
import { useRef } from "react";
Expand Down

0 comments on commit dc3b62c

Please sign in to comment.