Skip to content

re: How to Use New React Context API Detailed VIEW POST


I just learned about it too. but what are the cases where you would choose this over something like redux.


Redux is a seperate Library used to manage the state in react. React context is used in particular use cases like login and logout or using different themes in your app.


Before you jump to react context - know what it prop drilling problem from kent c dodds

you can choose context approach when your screens in SPA are less and you have small amount of data to handle in entire app.

code of conduct - report abuse