Skip to content

Commit 0156e6b

Browse files
committed
fix ref prop name
1 parent ae986be commit 0156e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/07.imperative-handle/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function App() {
3232
const myInputRef = useRef<InputAPI>(null)
3333
return (
3434
<div>
35-
<MyInput myInputRef={myInputRef} placeholder="Enter your name" />
35+
<MyInput ref={myInputRef} placeholder="Enter your name" />
3636
<button onClick={() => myInputRef.current.focusInput()}>
3737
Focus the input
3838
</button>

0 commit comments

Comments
 (0)