In the next section, we will go through some techniques, tools, and libraries that we can apply to our code base to monitor and improve the performance.
Tools and libraries
Immutability
As we have seen, the most powerful tool we can use to improve the performance of our React application is shouldComponentUpdate using PureComponent.
The only problem is that PureComponent uses a shallow comparison method against the props and state, which means that if we pass an object as a prop and we mutate one of its values, we do not get the expected behavior.
In fact, a shallow comparison cannot find mutation on the properties and the components never get re-rendered, except when the object itself changes.
One way to solve this issue...