score:1

setState((prevState) => ({
      ...prevState,
      count: prevState.count + 1
    }));

Related Query

More Query from same tag