4 ms·
People use Redux or any other state management solutions for the same reason they use frameworks and libraries in the first place – all the tough design decisio
by iliaznk 8y ago
People use Redux or any other state management solutions for the same reason they use frameworks and libraries in the first place – all the tough design decisions have been made for them, they just have to follow the rules. Of course you can do with React's internal state alone, but do get it right for complex apps it takes some prior experience and knowledge.
Could you elaborate a bit on what those decorators you mentioned are?
- _pdp_ 8y agoThis not my point - my point is that although it is optional it is mentioned as the defacto standard. I don't think it is because it complicates things way to much. I cannot enumerate all decorators in this comment but we have one called useGlobalState where you pass several prop names and a scope name and in return it manages those props for your like any other controlled component. It is fast and it is effective in what it does. There are a few others that are more specific.