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 - React.js Tutorial
From the course: React Foundations by Pearson
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
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives48s
-
(Locked)
Introduction to memo-ization11m 48s
-
(Locked)
Memoization of components that receive properties10m 5s
-
(Locked)
Providing a custom comparison function for component properties11m 33s
-
(Locked)
Memoizing a particular piece of content9m 39s
-
(Locked)
Lab: Memoization11m 22s
-
(Locked)
Lab solution: Memoization6m 38s
-
(Locked)
-
-
-
-
-
-