react.dev
react.dev copied to clipboard
Fix function name in refs code example
The code example in docs/refs-and-the-dom is incorrectly calling a function from the previous code item.
This PR updates the method called from focusTextInput to focus, which is the method existent in the current object.
Currently in the website:

After the update:

Size Changes
📦 Next.js Bundle Analysis
This analysis was generated by the next.js bundle analysis action 🤖
This PR introduced no changes to the javascript bundle 🙌