Skip to content

docs: explain focusing an input with a callback ref - #8735

Open
manjitks wants to merge 1 commit into
reactjs:mainfrom
manjitks:docs/focus-with-callback-ref
Open

manjitks wants to merge 1 commit into
reactjs:mainfrom
manjitks:docs/focus-with-callback-ref

Conversation

@manjitks

@manjitks manjitks commented Nov 5, 2026 •

Copy link
Copy Markdown

Summary

  • Show how a callback ref can focus an input when it is attached.
  • Note when autoFocus is simpler and why the callback should remain stable.

Closes #8718

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

This branch was successfully deployed

1 active deployment
Preview — d8d6bd74 Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Suggestion]: Add example of focusing an input using callback refs

1 participant