Passing a value to a nested component using the React Context API
When I started learning React in 2018, hooks were not yet a thing. This was very taxing since I was struggling to get a component to render and having to pass props from parent to child added another level of complexity. Fast-forward to 2022 when I start playing in React again and I learn about…