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 17, 2024
1 parent 675070a commit 3b5c317
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 3b5c317

Please sign in to comment.