Lesson 1.3

Finding wasted renders

Most React slowness is a subtree re-rendering for no reason. Track it back to the prop or context value that changes identity on every render.

Duration
9m
Level
Advanced
Students
6.7k students

Overview

Most React slowness is a subtree re-rendering for no reason. Track it back to the prop or context value that changes identity on every render.

In this lesson you will:

  • Trace a re-render back to the prop that changed
  • Spot object and function props recreated each render
  • Recognise context as a re-render broadcast

Resources

React documentation

The official reference for the tools used in this lesson.