News for hackers. Stuff that matters.
Re:useStateMachine: A ½ kb state machine hook for React by ricardobayes on Saturday May 22, 2021 @09:55AM (#27246565)
You can use a boolean ref for this in the useEffect to keep track whether it was the first render or not. https://reactjs.org/docs/hooks-faq.html#can-i-run-an-effect-...

There are no comments on this comment yet.