As the title shows, Can i know how many times when a class component or a functional component render? Is there any chrome extension or webpack plugin? And now i just can get this by console.log
.
just console.log
to log the times.
You should use react-devtools
:
react-devtools
extension. Profiler
tabStart-Profiling
Dashboard Component (
0.6ms of 86.ms
) - Rendered at1.3 for 83ms
Refer to official walkthrough video of the profiler on YouTube.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With