Home ProgrammingProblem Solving Setting React Hooks states in a sync-like manner?