Skip to content
JS

React Class Component Patterns

Course on egghead by Kent C. Dodds

View on egghead (opens in a new tab)
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

Description from egghead

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

18 lessons
  1. 1Course Overview: Advanced React Component Patterns
  2. 2Build a Toggle Component
  3. 3Write Compound Components
  4. 4Make Compound React Components Flexible
  5. 5Validate Compound Component Context Consumers
  6. 6Prevent Unnecessary Rerenders of Compound Components using React Context
  7. 7Use Render Props with React
  8. 8Use Prop Collections with Render Props
  9. 9Use Prop Getters with Render Props
  10. 10Use Component State Initializers
  11. 11Implement Component State Reducers
  12. 12Improve the usability of Component State Reducers with state change types
  13. 13Make Controlled React Components with Control Props
  14. 14Support Control Props for all state
  15. 15Support a state change handler for all control props
  16. 16Improve the usability of Control Props with state change types
  17. 17Implement the Provider Pattern with React Context
  18. 18Implement a Higher Order Component

Similar React courses

  1. Reusable State and Effects with React Hooks

    egghead · Elijah Manor · 13 lessons · 4.7 from 29 ratings · Dec 2018

    57 minSubscription
    egghead134.7 (29)Dec 2018
  2. Up and running with Preact

    egghead · Shane Osbourne · 12 lessons · Jun 2017

    58 minSubscription
    egghead12Jun 2017
  3. Learn React Router v5

    Codecademy · 1 lessons · Jan 2023

    Beginner1 h
    Codecademy1Jan 2023
  4. Beginner1 h
    Codecademy2Oct 2022
  5. Beginner1 h
    Codecademy1Oct 2022
  6. Beautiful and Accessible Drag and Drop with react-beautiful-dnd

    egghead · Alex Reardon · 14 lessons · 4.8 from 30 ratings · Jul 2018

    1 h 3 minFree
    egghead144.8 (30)Jul 2018
  7. Build Your First React Website

    Coursera · Harrison Kong · Jun 2020

    Intermediate1 h 30 min
    CourseraJun 2020
  8. Intermediate1 h 30 min
    CourseraSept 2020

A hyphen means the provider's catalogue does not state the value.

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.

    Compare