Skip to content

Commit

Permalink
Fix typo in updating-arrays-in-state.md
Browse files Browse the repository at this point in the history
Thanks to Alex H for reporting.
  • Loading branch information
sophiebits committed Mar 31, 2023
1 parent 8f05b84 commit 9f0f1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/learn/updating-arrays-in-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ setMyList(myList.map(artwork => {
// No changes
return artwork;
}
});
}));
```

Here, `...` is the object spread syntax used to [create a copy of an object.](/learn/updating-objects-in-state#copying-objects-with-the-spread-syntax)
Expand Down

0 comments on commit 9f0f1c1

Please sign in to comment.