<Login /> and <Auth />
- Why is the Context API useful?
Because it allows us to use certain functions or states or the like anywhere in the app, without having to pay attention to the direction the data is going.
- Can a component outside of a provider get its context?
No.
- What are some common use cases for using the Context API?
Providing data to multiple endpoints in the app, without having to pass each data as a prop each time.
- Describe “Context Hell”
It’s when you have many context files used, making the code look horrible.