3 ms·
>Seems like it could create a lot more code with less re-usage, since every widget has to manage this themselves. It might create a bit more code in components
by alexey2020 5y ago
>Seems like it could create a lot more code with less re-usage, since every widget has to manage this themselves.
It might create a bit more code in components, agree. I think this is a fair price for the all benefits it brings.
That said, the total amount of code might be even less (no action-creators, reducers, etc.).
Also declarative nature of the libraries makes the added code very easy to follow.
- candiodari 5y agoThe key thing to realise with widgets is that while the widget code is indeed complex, it’s reusable and generally you’re not writing it.