New advertisers: 50% off your first month with code FIRSTMONTHSee slots
getsentry avatar

Sentry React Sdk

Official Sentry SDK setup for React apps covering errors, tracing, session replay, profiling, and logging.

skills.sh installs
3.3K
GitHub stars
280
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers Sentry initialization for React, from src/instrument.ts through entry-point wiring and router-aware tracing
  • Includes React 19 reactErrorHandler() and React 16 to 18 Sentry.ErrorBoundary patterns, plus Redux and Vite source map setup
  • Recommends error monitoring, tracing, and session replay by default, with logging and profiling as optional additions
  • Designed for React projects on React Router v5 to v7 non-framework mode, TanStack Router, Redux, Vite, or webpack

Install

$ npx -y skills add getsentry/sentry-for-ai --skill sentry-react-sdk -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

All Skills > SDK Setup > React SDK

Sentry React SDK

Opinionated wizard that scans your React project and guides you through complete Sentry setup.

Invoke This Skill When

  • User asks to "add Sentry to React" or "set up Sentry" in a React app
  • User wants error monitoring, tracing, session replay, profiling, or logging in React
  • User mentions @sentry/react, React Sentry SDK, or Sentry error boundaries
  • User wants to monitor React Router v5/v6/v7 non-framework navigation, Redux state, or component performance

If project is React Router Framework mode using @sentry/react-router, use sentry-react-router-framework-sdk instead of this skill.

Note: SDK versions and APIs below reflect current Sentry docs at time of writing (@sentry/react ≥8.0.0). Always verify against docs.sentry.io/platforms/javascript/guides/react/ before implementing.


Phase 1: Detect

Run these commands to understand the project before making any recommendations:

# Detect React version
cat package.json | grep -E '"react"|"react-dom"'

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
Frontend & UI Code, Debugging
First seen
Apr 16, 2026

More from getsentry/sentry-for-ai

All 27

Similar to Sentry React Sdk

More Frontend & UI Code