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 s…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Difference between Redux and Context API." salman6abbas | Sciencx - Monday December 20, 2021, https://www.scien.cx/2021/12/20/difference-between-redux-and-context-api/
HARVARD
salman6abbas | Sciencx Monday December 20, 2021 » Difference between Redux and Context API., viewed ,<https://www.scien.cx/2021/12/20/difference-between-redux-and-context-api/>
VANCOUVER
salman6abbas | Sciencx - » Difference between Redux and Context API. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/20/difference-between-redux-and-context-api/
CHICAGO
" » Difference between Redux and Context API." salman6abbas | Sciencx - Accessed . https://www.scien.cx/2021/12/20/difference-between-redux-and-context-api/
IEEE
" » Difference between Redux and Context API." salman6abbas | Sciencx [Online]. Available: https://www.scien.cx/2021/12/20/difference-between-redux-and-context-api/. [Accessed: ]
rf:citation
» Difference between Redux and Context API | salman6abbas | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.