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
| Metric | Good | Typical React cause when poor |
|---|---|---|
| LCP | ≤ 2.5 s | Client-side rendering of the first screen, large bundles, late hero images |
| INP | ≤ 200 ms | Expensive re-renders, heavy event handlers, long tasks during hydration |
| CLS | ≤ 0.1 | Content inserted after data loads, images without dimensions |
| JS error rate | Low and stable | Unhandled 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
memoand 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
useMemoor out of the component, and useuseTransitionfor 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.
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
- Response time checker: Measure TTFB with DNS, connect, TLS and server time.
Related reading
- 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.