Component Patterns
The patterns experienced React developers reach for: composition, compound components, render props, higher order components, and the APIs that support them.
- Level
- Intermediate
- Chapters
- 4
- Exercises
- 1
- Reading time
- 15 min
What you will cover
- 1. Composition FirstThe pattern that removes the need for most of the others.
- 2. Compound ComponentsComponents that work together and share state implicitly.
- 3. Render Props and Higher Order ComponentsThe two pre-hooks reuse patterns, why they faded, and where they still fit.
- 4. Controlled and Uncontrolled ComponentsDesigning a component that works both ways, the way the built-in inputs do.
Up next after this one: React Performance