React.PureComponent is similar to React.Component. The difference is that React.Component implements the shouldComponentUpdate life cycle method internally to make a shallow comparison of the state and props to decide if the component should update or not.
Working with React.PureComponent
Getting ready
In this recipe, you will write two components, one extending React.PureComponent, and another extending React.Component, in order to see how they behave when the same properties are passed to them. Before you start, create a new package.json file with the following content:
{ "scripts": { "start": "parcel serve -p 1337 index.html" }, "devDependencies": { "babel...