A
A
Alexey Nikolaev2021-05-05 16:51:43
React
Alexey Nikolaev, 2021-05-05 16:51:43

Does smart & dumb component structure make sense in 2021?

Good day.
Even Dan Abramov abandoned this architecture in 2019, but it is still used in many places. Although there have long been hooks (in react) and composition api (in vue) that allow you to do the same thing (separate the state management logic), but much more beautiful and convenient. In addition, if access to the state is given pointwise, only where necessary, it is easier to optimize the application - one small smart component that receives one property from the state is better than a large smart component that throws a bunch of props.

Does this approach still have some advantages that the composition api \ hooks cannot provide?

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question