Data flow without and with context API

Context API is used to reduce the drilling of data through the component tree by not passing it through every level of the tree and directly passing it to the child who needed that data. Context also uses states but make them more centralized.
First, we need to create a context…

Maneet Lodha

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store