Wenz
React State and Arrays | How to Work with Arrays in State
Handling data fetching in Next.js with useSWR - LogRocket Blog
Array Cheat Sheet
Here's a quick reference of some common techniques for manipulating arrays in state. Keep this in mind, because working with arrays will be important as a React developer!
Add: use the spread operator ([...])
Remove: use .filter
Update: use .map