Skip to content

Fix function name in refs code example - #4793

Open
fcallegari7 wants to merge 1 commit into
reactjs:mainfrom
fcallegari7:update-refs-code-example
Open

Fix function name in refs code example#4793
fcallegari7 wants to merge 1 commit into
reactjs:mainfrom
fcallegari7:update-refs-code-example

Conversation

@fcallegari7

@fcallegari7 fcallegari7 commented Jul 6, 2022

Copy link
Copy Markdown

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

@github-actions

github-actions Bot commented Jul 6, 2022

Copy link
Copy Markdown

Size Changes

Details

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants