71
I keep hearing that "Context API can replace Redux" but I'm not sure how to use it properly.
Can someone show me:
- How to create a context
- How to provide values
- How to consume the context
- When to use context vs passing props
With a practical example like a theme switcher or auth state?