DEV Community

Discussion on: How to CRUD an Array in JavaScript

Collapse
 
monsieurmechant profile image
Adam Mechant

I think there is a typo in your immutable create example.
You've switched the name of the variable of the initial array from list to state

Collapse
 
rahmanfadhil profile image
Rahman Fadhil

Fixed 👌, thanks for pointing out a problem!