3 ms·
This. I always focus more on the "foundation" part, in this case, it's common React Hooks and its API for the components to use. The good part is, if some hoo
by revskill 8y ago
This.
I always focus more on the "foundation" part, in this case, it's common React Hooks and its API for the components to use.
The good part is, if some hooks are wrong, we can just write new one and replace old ones within old components without the need of taking care of the old wrong Hooks.
- chrisweekly 8y agoAren't Hooks too new for you to make claims about what you "always" do with them?
- revskill 8y agoBefore, it was HOC and RenderProps. This is just an example with Hooks, it's mostly how i approach the problem though.
- chrisweekly 8y agoRight on, makes sense.