Spent yesterday building a React app using Hooks
Spent yesterday building a React app using Hooks. What a joy. Even as a long time React dev, composing lifecycle methods remains tricky. useEffect’s mental model is so much simpler. To me, Hooks are the most exciting change to ever happen to React.
And I’m spoiled now too. I don’t want to go back to dealing with lifecycle methods. I was able to implement a complex behavior reliant upon DOM positions in a few lines of code and extract it into a reusable Hook. Hooks are a game changer.