reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 401: Class 34 - Login and Auth


Questions

  1. Why is the context API useful? Useful when some data needs to be accessible by many components at different levels.

  2. Can a component outside of a provider get its context? Yes, it is possible to access context outside of a provider.

  3. What are some common use cases focusing the Context API? Where data or state is needed by all or most components such as page themes

  4. Describe “Context Hell” Many nested layers of components passing context down

Vocabulary

Read: What is role based access control

Read: React-cookies component


Return to reading-notes Deployed Site

Return to reading-notes Mark Down