2 ms·
As someone who was initially resistant to hooks, I actually find that they're a more expressive API to how I was already thinking about my applications. There's
by dstaley 5y ago
As someone who was initially resistant to hooks, I actually find that they're a more expressive API to how I was already thinking about my applications. There's footguns for sure, just like there are with class components, but I found that rewriting my class components with hooks instead actually made the code cleaner and easier to reason about. That being said, it's possible the benefit simply came from the rewrite, but even with newer components, I feel like hooks are a better API.