Tracking rendered in React app?
1 answer
In design mode, you can visualize how components mount, update, and unmount using performance tools in supported browsers. For example:
To do this in Chrome:
-
Load your application using the response_perf command in the query string (for example, http: // localhost: 3000 /? React_perf ).
-
Open the Chrome DevTools Performance tab and click Write.
-
Follow the steps you want to profile. Do not record for more than 20 seconds or Chrome may freeze.
-
Stop recording.
-
Responsive events will be grouped under the User Timing label.
Note that numbers are relative, so components will render faster in production. However, it should help you understand when the unrelated UI is being updated by mistake and how deep and how often the UI is updated.
+3
source to share