Skip to content
JS

Simplify React Apps with React Hooks

Course on egghead by Kent C. Dodds

View on egghead (opens in a new tab)
38 min
LengthVideo runtime
Subscription
Price modelegghead plan
11
Lessons
4.6
Rating out of 555 ratings on egghead
Dec 2018
Published3 Dec 2018

About this course

Description from egghead

With the massive improvements to function components in React via hooks and suspense, you may be interested in seeing how to refactor a typical class component to a simpler function component that uses React Hooks features. In this course, Kent will take a modern React codebase that uses classes and refactor the entire thing to use function components as much as possible. We’ll look at state, side effects, async code, caching, and more! Want a primer on hooks and suspense? Watch Kent's React Hooks and Suspense Playlist!

What it covers

11 lessons
  1. 1Introduction to Refactoring a React Application to React Hooks
  2. 2Refactor a Class Component with React hooks to a Function
  3. 3Handle Deep Object Comparison in React's useEffect hook with the useRef Hook
  4. 4Safely setState on a Mounted React Component through the useEffect Hook
  5. 5Extract Generic React Hook Code into Custom React Hooks
  6. 6Track Values Over the Course of Renders with React useRef in a Custom usePrevious Hook
  7. 7Refactor a React Class Component with useContext and useState Hooks
  8. 8Refactor a render Prop Component to a Custom React Hook
  9. 9Handle componentDidMount and componentWillUnmount in React Component Refactor to Hooks
  10. 10Dynamically Import React Components with React.lazy and Suspense
  11. 11Preload React Components with the useEffect Hook

Similar React courses

  1. Add Internationalization (i18n) to a React app using React Intl

    egghead · Damon Bauer · 11 lessons · 5.0 from 3 ratings · Jul 2017

    38 minSubscription
    egghead115.0 (3)Jul 2017
  2. Leverage New Features of React 16

    egghead · Nik Graf · 12 lessons · Sept 2017

    39 minSubscription
    egghead12Sept 2017
  3. Build Virtual Reality Experiences Using React VR

    egghead · Nik Graf · 10 lessons · 3.6 from 2 ratings · Aug 2017

    36 minSubscription
    egghead103.6 (2)Aug 2017
  4. Learn React Router v5

    Codecademy · 1 lessons · Jan 2023

    Beginner1 h
    Codecademy1Jan 2023
  5. Beginner1 h
    Codecademy2Oct 2022
  6. Beginner1 h
    Codecademy1Oct 2022
  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