jayarjo
jayarjo

Reputation: 16754

How to assess performance of unknown React application

Lets say I start working in a new company on an existing large React application. How would I assess its performance as a whole? Efficiency of rendering mostly. Are there any tools for that?

Upvotes: 0

Views: 109

Answers (1)

Ali Torki
Ali Torki

Reputation: 2038

  1. Get help from React.Profiler component.

React 16.5 adds support for a new DevTools profiler plugin. This plugin uses React’s experimental Profiler API to collect timing information about each component that’s rendered in order to identify performance bottlenecks in React applications. It will be fully compatible with our upcoming time slicing and suspense features.

  1. Use the react-addons-perf package that tells you exactly where you need to put these methods.

As of React 16, react-addons-perf is not supported. Please use your browser’s profiling tools to get insight into which components re-render

Upvotes: 1

Related Questions