Fix typo in useRef.md (#8060)

This commit is contained in:
Antonin Gauthier
2025-10-16 21:07:48 +02:00
committed by GitHub
parent 55e37af6c5
commit 44e94f3e75

View File

@@ -573,7 +573,7 @@ export default function MyInput({ value, onChange }) {
}
```
And then add `ref` to the list of props your component accepts and pass `ref` as a prop to the relevent child [built-in component](/reference/react-dom/components/common) like this:
And then add `ref` to the list of props your component accepts and pass `ref` as a prop to the relevant child [built-in component](/reference/react-dom/components/common) like this:
```js {1,6}
function MyInput({ value, onChange, ref }) {