Setup & Installation
What This Skill Does
Full Sentry SDK setup for React. Use when asked to add Sentry to React, install @sentry/react, or configure error monitoring, tracing, session replay, profiling, or logging for React applications. Supports React 16+, React Router v5-v7, TanStack Router, Redux, Vite, and webpack.
Covers the router and bundler combinations teams actually use so tracing and replay hook into the right parts of the app.
When to use it
- Adding @sentry/react to a Vite-based app
- Instrumenting React Router v7 navigation with tracing
- Wiring TanStack Router into Sentry performance monitoring
- Enabling session replay on a Redux-powered SPA
- Standardizing Sentry config across webpack React builds