Since the release of the react hooks, there has been a lot of discussion about the use of memo() and useMemo(), but memoization is rarely required.
The best solution is frequently a good composition of your components and state, which is why these guidelines are important. Depending on how you need to optimize your rendering, consider learning more about keys, refs, and advanced react development.
{% embed url="https://reactjs.org/docs/optimizing-performance.html" %}
Also maybe in the future everything will be memorized by react it self
{% embed url="https://www.youtube.com/watch?v=lGEMwh32soc" %}
{% embed url="https://epicreact.dev/memoization-and-react" %}
{% embed url="https://dmitripavlutin.com/use-react-memo-wisely" %}
{% embed url="https://reactjs.org/docs/hooks-reference.html#usememo" %}
{% embed url="https://overreacted.io/before-you-memo" %}
{% embed url="https://dmitripavlutin.com/use-react-memo-wisely" %}