How React.memo works?

In this lesson, we'll discuss how React.memo works.

We'll cover the following

React.memo

React.memo is the perfect replacement for the class’s PureComponent. All you do is wrap your functional component in the React.memo function call and you get the exact behavior PureComponent gives.

Here’s a quick example:

Get hands-on with 1400+ tech skills courses.