DEV Community

Discussion on: Do you need a State Management Library?

Collapse
r12esh profile image
Ritesh Gupta

Yes, when working for a Medium to big project redux makes life easier. And then redux-saga makes Api calls so much organised. And the biggest difference is Context API is expensive.Context API prompts a re-render on each update of the state and re-renders all components regardless. Redux however, only re-renders the updated components

Collapse
link2twenty profile image
Andrew Bone Author

Slight caveat Context API updates all components that use the specific context updated. Provided you split the data across several contexts and only import the context in components that need access the redraws become a non-issue.