React Class Component Patterns
Course on egghead by Kent C. Dodds
- 56 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 18
- Lessons
- 4.4
- Rating out of 59 ratings on egghead
- Dec 2017
- Published4 Dec 2017
About this course
Once you’ve nailed the fundamentals of React, that’s when things get really fun. This course teaches you advanced patterns in React that you can use to make components that are simple, flexible, and enjoyable to work with. You'll start with a simple component that you'll progressively refactor to each of the patterns. Throughout the course, you’ll see the benefits of each pattern and how they can be mixed-and-matched to make your components more useful (and simple for everyone who comes across them). Kent C. Dodds has built and shipped components using each of these patterns. Along the way, he will help you understand and weigh the trade-offs of each pattern so you’ll intuitively know where to apply each of them in your own components. You’ll finish the course with a list of actionable things you can do, right away, to rework the components that you're building.
What it covers
- 1Course Overview: Advanced React Component Patterns
- 2Build a Toggle Component
- 3Write Compound Components
- 4Make Compound React Components Flexible
- 5Validate Compound Component Context Consumers
- 6Prevent Unnecessary Rerenders of Compound Components using React Context
- 7Use Render Props with React
- 8Use Prop Collections with Render Props
- 9Use Prop Getters with Render Props
- 10Use Component State Initializers
- 11Implement Component State Reducers
- 12Improve the usability of Component State Reducers with state change types
- 13Make Controlled React Components with Control Props
- 14Support Control Props for all state
- 15Support a state change handler for all control props
- 16Improve the usability of Control Props with state change types
- 17Implement the Provider Pattern with React Context
- 18Implement a Higher Order Component
Similar React courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.