From the course: React Foundations by Pearson

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Learning objectives

Learning objectives

Hello and welcome to Lesson 7. In this lesson, we're going to discuss memorization. That is the actual name for it. Memorization is effectively caching. If you have a component that renders some content and has to do a lot of work to generate content, you can arrange for React to basically cache the content after the first render. So if nothing else changes, when it needs to render it again, it can just remember what it cached previously, instead of having to repeat all the code to generate it from scratch. So it's an optimization technique for rendering, quite useful, gives you more smooth and efficient user interfaces. So let's see how it works.

Contents