
React Hooks Design Review
Software Unscripted
The Importance of State in a Component's Life Cycle
State alone made it not pure for me. I remember thinking oh renders a pure function and not realizing until actually just this conversation that actually it never was because of that state yeah fundamentally two things end up tripping people up about hooks is like there's all these winter rules that you care about and then they no longer give you the life cycle of the component as an API to interact with directly. They want you to think abstractly through things like use effect for synchronizing effects use reducer for updating the state using context for passing on the context. That does make certain things difficult like if you have like analytics and you want to hook into the first time a page amounts or something like that so