How ReactJS creates inside functions? amazing !

yeahch

ch

Posted on August 19, 2020

How ReactJS creates inside functions? amazing !

In the past, I did not care how ReactJS creates functions and variables while re-rendering components.
But I had a few chance to look at about this.

Now ReactJS creates all functions and variables newly whenever they re-render their component.
To optimize performance with memory, useCallback was very effective for this, and decreased re-creation times a lot more.
Please check my repository, and github pages to test.

https://github.com/yeahCH/react-performance-inspector
https://yeahch.github.io/react-performance-inspector/

💖 💪 🙅 🚩
yeahch
ch

Posted on August 19, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related