This content originally appeared on DEV Community and was authored by salman6abbas
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.
This content originally appeared on DEV Community and was authored by salman6abbas
salman6abbas | Sciencx (2021-12-20T01:00:51+00:00) Difference between Redux and Context API. Retrieved from https://www.scien.cx/2021/12/20/difference-between-redux-and-context-api/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.