I admit I’m still totally unconvinced of the value of hooks. This code looks more complex and abstract than the simple class model. Still, it’s good to see some resources!
I can't wait to start using hooks. I think the main power of them will be code reusability, like pulling a bunch of hooks into your html and having out of the box drag and drop, animations, etc, all while keeping the code clean and readable.
6 comments
[ 3.1 ms ] story [ 22.9 ms ] threadCan't reusability come via abstract components, instead of hooks?
I was pretty skeptical at first, and perfectly happy with the render props pattern, but after using hooks for a few weeks I'm liking it much better.