JavaScript React Basics Understanding State Remove Items From State

A clear example on prevState ?

Can we have a clear example on how we should use prevState ?

3 Answers

Sorry - not sure why my answer sent twice!?! LOL (I think it was due to a VPN conflict on my end!?!)

BTW, I made this using React and Redux (my quirky take on the classic Simon Game coding challenge):

https://codepen.io/petrovnikov/full/MXxQPx