0Pricing
React Academy · Lesson

When Not to Use Context

Recognize cases where prop passing, composition, or a state manager is a better fit.

Welcome

In this lesson you will learn when React Context is the wrong tool and recognise situations where prop passing, composition, or a state manager is a better and simpler fit.

Context Is Not a Silver Bullet

Context is often over-used. Developers reach for it to avoid any prop passing, but this creates hidden dependencies, makes components harder to test, and can hurt performance.

All lessons in this course

  1. Splitting Contexts to Limit Re-renders
  2. Memoizing Context Values with useMemo
  3. Context Selector Pattern
  4. When Not to Use Context
← Back to React Academy