Lesson 8
Clean Context Providers
<Context> as a Provider
The Shift: We no longer need to type .Provider. It's a small change, but it removes visual noise.
👀 Preview
Context can be used directly as a provider without the .Provider suffix.
📚 Explanation
In React 19, you can use the Context directly as a provider without the `.Provider` suffix. This reduces visual noise and makes context usage more concise while maintaining the same functionality.
App.tsx
How well did you remember this?