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