3 ms·
React hooks are footguns
by jamghee 5y ago
React hooks are footguns
- adam_arthur 5y agoVue hooks avoid the closure/scoping issue mentioned in the doc. Very similar conceptually, but I find Vue's implementation a bit nicer to use
- MarcelOlsz 5y agoTook me 30 minutes to get up and running in Vue. Week 4 of this job and I still can't unfuck myself with React.
- kevinmchugh 5y agoI'm missing some toes from the old react lifecycle methods. The vanilla hooks were easy to use, reason about, and robust against misuse in a way the lifecycle methods weren't. I could see custom hooks being more dangerous and difficult, but Higher-Order Components are too.