Skip to main content

No Installation Required

The fastest way to use React Doctor is with npx. This runs the latest version without installing anything:
The -y flag skips the confirmation prompt and ensures you always get the latest version.

Optional: Global Installation

If you prefer to install React Doctor globally:
Then run it from any project directory:
Global installation may not always use the latest version. We recommend using npx for the most up-to-date features and fixes.

System Requirements

Node.js

Version 18 or higher required

React

Works with any React version

TypeScript

TypeScript 5.0.4 - 6.x supported

Frameworks

Next.js, Vite, Remix, CRA, React Native, and more

Verify Installation

Check that React Doctor is working correctly:

For Coding Agents

If you’re using a coding agent (Cursor, Claude Code, OpenCode, Windsurf, etc.), install the React Doctor skill:
The skill teaches your coding agent all 47+ React best practice rules so it can help you fix issues automatically.
Supported coding agents:
  • Cursor
  • Claude Code
  • Amp Code
  • Codex
  • Gemini CLI
  • OpenCode
  • Windsurf
  • Antigravity

Workspace Projects

React Doctor automatically detects monorepo workspaces. When you run it in a monorepo root, it will:
  1. Detect all workspace projects
  2. Prompt you to select which projects to scan
  3. Scan each selected project independently

Skip Project Selection

To scan all projects without prompting:

Scan Specific Projects

To scan specific projects by name:

Next Steps

Quick Start

Run your first scan and understand the output

Configuration

Customize React Doctor for your project