4 ms·
How to Debug Performance Problems in React App
- one way to debug that would be
- if you see some unrelated component getting re-rendered
- just comment it out
- and do the profiling again
- see if removing that component improves your app performance
- once it does
- then go deep
- start commenting out the code inside that component
- to narrow down your problem area
- comment-to-debug is an amazing debugging technique you should master!