react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Fix function name in refs code example

Open fcallegari7 opened this issue 3 years ago • 1 comments

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: current

After the update: update

fcallegari7 avatar Jul 06 '22 05:07 fcallegari7

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 🙌

github-actions[bot] avatar Jul 06 '22 05:07 github-actions[bot]