use state

[1/1]

  1. Managing State Updates and Side Effects in React Functional Components
    However, in React functional components using hooks, there's no direct equivalent for a callback argument with useState