Use memoization to improve UI performance

In order to improve the UI performance, we adopted to use the memoization feature, React.memo(). You can use it with component generator 'Do you want the component use the momoized functionality?' option activated.

This is the content of the file withe the option activated:

import React from 'react';

const myComponent = () => (
    <p>Render Component</p>

export default React.memo(myComponent);

We reccomended to use the memoized functionality, only with this criteria are met:

To get a more detailed view of rect memo, we recommend you read this article by dmitri pavlutin