Using Context API
In this episode we are going to use React Context API to get the data for our navigation and also to create a simple state management.
Currently we are passing the data to the navigation component with prop drilling. Nothing wrong with that, but sometimes that can get pretty complex so you have to use other strategies to get the data from one component to another. That is why we are going to use Context API in this episode, and get rid of prop drilling to get the data to our navigation component. Also I’m going to show you how to create simple state management using Context API.