Skip to content

Commit 2c20b69

Browse files
authored
Merge pull request #976 from masto/tutorial-fixes
Correct attribute for initial value of input field
2 parents 4ca1a04 + 37b8c1b commit 2c20b69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/tutorial/05-refs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function App() {
177177
178178
return (
179179
<div>
180-
<input initialValue="Hello World!" />
180+
<input defaultValue="Hello World!" />
181181
<button onClick={onClick}>Focus input</button>
182182
</div>
183183
);
@@ -199,7 +199,7 @@ function App() {
199199
200200
return (
201201
<div>
202-
<input ref={input} initialValue="Hello World!" />
202+
<input ref={input} defaultValue="Hello World!" />
203203
<button onClick={onClick}>Focus input</button>
204204
</div>
205205
);

0 commit comments

Comments
 (0)