← React Intermediate Questions - Set 5 Q42

How can you share state between components in React?

React Intermediate Questions - Set 5

Example

// 1. lift to parent  2. context  3. external store (Redux/Zustand)
<AuthContext.Provider value={user}>…</AuthContext.Provider>

What to notice

← Back to the question list