News for hackers. Stuff that matters.
Re:useStateMachine: A ½ kb state machine hook for React by tanaypingalkar on Saturday May 22, 2021 @04:32PM (#27250014)
True, you cannot do that in useEffect, it will throw you error. And probably your linter will tell you. You can't even use your own or third party hooks in side useEffect. This also throw error I don't know why?
Re:useStateMachine: A ½ kb state machine hook for React by gassiss on Saturday May 22, 2021 @11:45PM (#27252262)
Because you could be nesting hooks, which would bring all sorts of weird behavior.