From d8d6bd7439194b36a7cf3064cfe1a72d0f547f61 Mon Sep 17 00:00:00 2001 From: manjit Date: Thu, 5 Nov 2026 19:12:07 +0530 Subject: [PATCH] docs: explain focusing an input with a callback ref --- .../learn/manipulating-the-dom-with-refs.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/content/learn/manipulating-the-dom-with-refs.md b/src/content/learn/manipulating-the-dom-with-refs.md index 2d1ee86851d..65d56a4458f 100644 --- a/src/content/learn/manipulating-the-dom-with-refs.md +++ b/src/content/learn/manipulating-the-dom-with-refs.md @@ -80,6 +80,20 @@ To implement this: 3. In the `handleClick` function, read the input DOM node from `inputRef.current` and call [`focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) on it with `inputRef.current.focus()`. 4. Pass the `handleClick` event handler to `