There was an error while loading. Please reload this page.
2 parents 4ca1a04 + 37b8c1b commit 2c20b69Copy full SHA for 2c20b69
1 file changed
content/en/tutorial/05-refs.md
@@ -177,7 +177,7 @@ function App() {
177
178
return (
179
<div>
180
- <input initialValue="Hello World!" />
+ <input defaultValue="Hello World!" />
181
<button onClick={onClick}>Focus input</button>
182
</div>
183
);
@@ -199,7 +199,7 @@ function App() {
199
200
201
202
- <input ref={input} initialValue="Hello World!" />
+ <input ref={input} defaultValue="Hello World!" />
203
204
205
0 commit comments