Reduce "prop drilling" in React with the Context API

Share this video with your friends

Send Tweet

In this lesson, we approach the concept of "prop drilling" and see how it can lead to maintenance pitfalls. By leveraging the Context API, we implement a context provider for our "search" and "shortlist" states. We then access that context where needed via the useContext hook.