Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 20, 2021 01:00 am GMT

Difference between Redux and Context API

So I was having an interview and I was asked to tell about the difference between redux and React's context api. First of all I was blown like nothing came to my mind and then I was like Redux contains a lot of boiler plate while context is very much simpler. I even went after saying even its cofounder Dan Abramov said he doesn't like using Redux.
Well he insisted like no there's other main difference regarding the scope that you have to tell. Well I gave up and then he told me that redux is global scope while context was components scope. Since then I kind of couldn't get over it. Like if this is the case then learning redux (although I don't like it) is essential as more and more companies are using it. What is your stance on it. Will be very glad to see the responses.


Original Link: https://dev.to/salman6abbas/difference-between-redux-and-context-api-12bg

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To