From 32a5db034ba66c5d7a4d6902352aa86e3eb90145 Mon Sep 17 00:00:00 2001 From: Gregor Adams Date: Tue, 26 Nov 2019 21:44:34 +0100 Subject: [PATCH] docs: Unify identifiers in "useImperativeHandle" example (#2590) The example was using `inputRef` while the description used `fancyInputRef`. This was irritating. --- content/docs/hooks-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 852ae4833..38b740aad 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -450,7 +450,7 @@ function FancyInput(props, ref) { FancyInput = forwardRef(FancyInput); ``` -In this example, a parent component that renders `` would be able to call `fancyInputRef.current.focus()`. +In this example, a parent component that renders `` would be able to call `inputRef.current.focus()`. ### `useLayoutEffect` {#uselayouteffect}