Browse Source

Update doc (#4077)

main
harish-sethuraman 3 years ago
committed by GitHub
parent
commit
967bf1f152
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/updating-arrays-in-state.md

2
beta/src/pages/learn/updating-arrays-in-state.md

@ -152,7 +152,7 @@ setArtists([
]);
```
In this way, spread can do the job of both `push()` by adding to the beginning of an array and `unshift()` by adding to the end of an array. Try it in the sandbox above!
In this way, spread can do the job of both `push()` by adding to the end of an array and `unshift()` by adding to the beginning of an array. Try it in the sandbox above!
### Removing from an array

Loading…
Cancel
Save