One problem you face while creating apps with React is managing states. Sometimes you require application-level state so that you can save and access the information you need from any component you want.

There are various libraries available to solve the problem, such as Redux and Flux. But React has its own method of making application level-state, and here’s where the React Context API comes in. It’s built into React, so you do not need to install any external libraries for state management in your app to get things done.

The Context API is the way to start if you…

Atharva Deosthale

Fullstack Web Developer, Freelancer, Teacher and a Blogger. I love to teach people through my writing skills. IG — @atharvadeosthale

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