React - Vidly handleReset method

In the React lesson it mentions to use a map function to reset counters ( handleReset method ). By logging it, noticed that it modifies the state directly, which we should not do. Is it a mistake? If so, what would be an efficient way to modify multiple values of an array?

Yes, at first when mosh implements handleReset, it directly changes the state but as you go along with the course mosh fixes the issue. :slight_smile: