Avoid Props Drilling with Context
In this lesson, we will introduce context to our Bank Application to avoid the props drilling.
One easy solution is to look at the Root
component where we began passing props down and finding a way to introduce a context object in there.
Going off that solution, we could create a context object with no initial default values above the Root
class declaration:
Get hands-on with 1400+ tech skills courses.