What is the purpose of React “context”?
we can use info between any component no matter the layer. (only childs can use it)
What values can be stored in context?
Anything: strings, numbers, booleans, etc
How do you create context and make it available to the components?
const newContext = createContext();
How do you access the context values?
Export it.
const (context = useContext(newContext);
When would you use context? (in addition to the best answer: “rarely”)
when you have information that accessed by multiple components that are scattered around.