Prevent state mutation in App.jsx
KleoPetroff opened this issue · comments
Kliment Petrov commented
The state in App.jsx
is mutated by the sort helper. Change the helper function by create a shadow copy of the array using slice
.
Kliment Petrov commented
Fixed.