Profiler API
Closed this issue · 0 comments
pluscai commented
Profiler API
The
Profiler
measures how often a React application renders and what the “cost” of rendering is. Its purpose is to help identify parts of an application that are slow and may benefit from optimizations such as memoization.
提供一个Profiler
api,可供分析性能:
render(
<App>
<Profiler id="Navigation" onRender={callback}>
<Navigation {...props} />
</Profiler>
<Main {...props} />
</App>
);