Counter app reset button

I think Mosh made a mistake implementing the handleReset for reseting counters.

handleReset = () => {
const counters = => {
  c.value = 0;
  return c;
this.setState({ counters });


The state is being modified directly?

Actually, I don’t think he did :eyes:.

And he also made the same mistake in section 8 - Calling Backend Services video 7- Updating Data

That is why it doesn’t work if you try to implement optimistic updates.