Lesson 2.1
When memo actually helps
memo skips a re-render when props are shallow-equal. It costs a comparison on every render, so applying it everywhere makes things slower, not faster.
10mAdvanced6,270 students

Sign in to watch this lesson
Browsing is free. Create an account to play videos and track your progress.
Overview
memo skips a re-render when props are shallow-equal. It costs a comparison on every render, so applying it everywhere makes things slower, not faster.
What this lesson covers
- Apply memo to expensive subtrees with stable props
- Understand shallow comparison and why objects defeat it
- Recognise when restructuring beats memoising
This lesson sits in Rendering Optimization, part of React Performance Engineering. It assumes what came before it and leads directly into the next lesson in the module.
In this lesson you will:
- Apply memo to expensive subtrees with stable props
- Understand shallow comparison and why objects defeat it
- Recognise when restructuring beats memoising