arrow_backBACK TO DRILLS
White Belt - EasyimmutabilityPREMIUM
Array mutation with push
A component stores an array in state and adds items like this:
//REACT_MODULE
artists.push(newArtist);The UI does not update after clicking "Add". Why?