React – updating arrays do not change state

this does not work
this does

Leave a Reply

Your email address will not be published.