Skip to content

Commit

Permalink
fix ref prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Sep 25, 2024
1 parent ae986be commit 0156e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/07.imperative-handle/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function App() {
const myInputRef = useRef<InputAPI>(null)
return (
<div>
<MyInput myInputRef={myInputRef} placeholder="Enter your name" />
<MyInput ref={myInputRef} placeholder="Enter your name" />
<button onClick={() => myInputRef.current.focusInput()}>
Focus the input
</button>
Expand Down

0 comments on commit 0156e6b

Please sign in to comment.