3 ms·
I haven't used hooks yet, but AFAIK the idea was to simplify the use of classes to functional components. Although this article shows that hooks have greater i
by pier25 8y ago
I haven't used hooks yet, but AFAIK the idea was to simplify the use of classes to functional components.
Although this article shows that hooks have greater implications than that. Also while maybe less verbose than classes, the code seems much more difficult to follow.
- chrisco255 8y agoI thought this at first too, but after using it in practice, it's very simple. One of my favorite things about Functional components is how effortless they are to create. Since they're effortless, you tend to break up your components into much more modular pieces. And I notice that my code base overall is much cleaner to look at and work with.