Skip to content

Performance monitoring

React performance monitoring

React apps feel slow when renders are expensive or the first screen waits on JavaScript. Measure real users, then use the Profiler to find the components responsible.

3 min read8 sectionsUpdated

On this page

Measure what users feel

Lab tests on a fast laptop hide most front-end problems. Measure real visitors: LCP for loading, INP for responsiveness and CLS for stability, at the 75th percentile, split by page, device and country. Add JavaScript error rate and, for single-page apps, route-change timing.

MetricGoodTypical React cause when poor
LCP≤ 2.5 sClient-side rendering of the first screen, large bundles, late hero images
INP≤ 200 msExpensive re-renders, heavy event handlers, long tasks during hydration
CLS≤ 0.1Content inserted after data loads, images without dimensions
JS error rateLow and stableUnhandled errors in components and async code

Common React performance problems

  • Re-rendering large trees on every keystroke because state lives too high; move state down, or memoize expensive children with memo and stable props.
  • Context values recreated every render, re-rendering every consumer.
  • Long lists rendered in full; virtualize lists with hundreds of rows.
  • Heavy work in render; move it to useMemo or out of the component, and use useTransition for non-urgent updates.
  • Everything client-rendered: server rendering or static generation puts content in the first HTML and helps LCP.

Measuring in development and production

The React DevTools Profiler records renders with their durations and the reason each component rendered. In production, field data matters: the web-vitals library reports LCP, INP and CLS, and a RUM tool aggregates them per route. Wrap app sections in error boundaries and report caught errors, so a crash in one widget is visible and contained.

React monitoring in VitalRix

Add the real user monitoring script to your app shell to record Core Web Vitals per page from real visitors, JavaScript errors with source-mapped stacks (upload source maps per release), and masked session replays. Pair it with APM for the API calls your React app makes, and try the free LCP and INP checks on any page.

Frequently asked questions

Does real user monitoring work with React client-side routing?

Yes. Page views are recorded on navigation, and Web Vitals such as INP and CLS are measured across the visit.

Do React Server Components help performance?

They can, by rendering data-heavy parts on the server and sending less JavaScript. Measure LCP and INP before and after on real users.

Check it now, free

  • Vue performance monitoring: Monitor Vue and Nuxt apps in production: Core Web Vitals from real users, reactivity and render cost, bundle size.
  • Angular performance monitoring: Monitor Angular apps in production: Core Web Vitals from real users, change detection cost, bundle size and lazy loading, errors with source maps.
  • Next.js performance monitoring: Monitor Next.js apps end to end: Core Web Vitals from real users, server rendering and route handler latency with OpenTelemetry, caching behaviour and errors.
  • Core Web Vitals monitoring: Monitor Core Web Vitals from real visitors: LCP, INP and CLS by page, device and country, with JavaScript errors, session replay, source maps and lab tests.
  • What is real user monitoring (RUM)?: Real user monitoring explained: how RUM measures Core Web Vitals (LCP, INP, CLS) and errors in real browsers, p75 targets, a worked example and privacy.
  • Monitoring for publishers and media sites: Monitoring for news and content sites: Core Web Vitals per template, layout shift from ads, breaking-news traffic spikes and crawlability checks.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.