---
title: "Comment by Kai Pereira on \"How to avoid unnecessary re-renders with React.memo()\" | Hashnode"
description: "I remember working on a project when I hit an infinite re-rendering error! It took me I think 3 days to fix it and it was all thanks to memo! Nice article!"
url: "https://hashnode.com/posts/how-to-avoid-unnecessary-re-renders-with-reactmemo/629a61cfb9e64a289701ca17/comment/629a8da070302328c80b635b"
---

[Discussion](https://hashnode.com/posts/how-to-avoid-unnecessary-re-renders-with-reactmemo/629a61cfb9e64a289701ca17)

Comment [How to avoid unnecessary re-renders with React.memo()](https://hashnode.com/posts/how-to-avoid-unnecessary-re-renders-with-reactmemo/629a61cfb9e64a289701ca17)

[Kai Pereira](https://hashnode.com/@KaiP)

[Jun 3, 2022](https://hashnode.com/posts/how-to-avoid-unnecessary-re-renders-with-reactmemo/629a61cfb9e64a289701ca17/comment/629a8da070302328c80b635b)

I remember working on a project when I hit an infinite re-rendering error! It took me I think 3 days to fix it and it was all thanks to memo! Nice article!

[Hyunjin Oh](https://hashnode.com/@hyunjinoh)

[Jun 17, 2022](https://hashnode.com/posts/how-to-avoid-unnecessary-re-renders-with-reactmemo/629a61cfb9e64a289701ca17/comment/629a8da070302328c80b635b#reply-62ac37461a89c91850b1cce7)

I'm glad you found the solution! It feels so good finding the solution after a few days of figuring it out haha
