Skip to content

Commit 32a5db0

Browse files
pixelasslex111
authored andcommitted
docs: Unify identifiers in "useImperativeHandle" example (#2590)
The example was using `inputRef` while the description used `fancyInputRef`. This was irritating.
1 parent 99b7901 commit 32a5db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ function FancyInput(props, ref) {
450450
FancyInput = forwardRef(FancyInput);
451451
```
452452

453-
In this example, a parent component that renders `<FancyInput ref={fancyInputRef} />` would be able to call `fancyInputRef.current.focus()`.
453+
In this example, a parent component that renders `<FancyInput ref={inputRef} />` would be able to call `inputRef.current.focus()`.
454454

455455
### `useLayoutEffect` {#uselayouteffect}
456456

0 commit comments

Comments
 (0)