Skip to content

Context

The main way to pass data inside a React application is through props. Like a train network, props allow us to pass state and other data across the application.

But sometimes, it can be a bit tedious to pass data through props. To help improve quality of life, React includes a secondary mode of transportation: Context.

Context is sorta like an express train. It allows us to "skip" certain stops, and hop straight from one component to another.

In this series of lessons, we'll learn all about it. 😄