We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb9c5b commit cec943bCopy full SHA for cec943b
src/content/learn/updating-arrays-in-state.md
@@ -67,7 +67,6 @@ export default function List() {
67
onChange={e => setName(e.target.value)}
68
/>
69
<button onClick={() => {
70
- setName('');
71
artists.push({
72
id: nextId++,
73
name: name,
@@ -121,7 +120,6 @@ export default function List() {
121
120
122
123
124
125
setArtists([
126
...artists,
127
{ id: nextId++, name: name }
0 commit comments