score:3

Accepted answer
  return {
    increase: () => setCounter(count + 1),
    decrease: () => setCounter(count - 1),
    ...
  };

Related Query

More Query from same tag