What is React Doctor?
React Doctor deterministically scans React code for issues across state and effects, performance, architecture, security, and accessibility.
Run React Doctor from a project root:
npx react-doctor@latestTo check every pull request, install the CI workflow:
npx react-doctor@latest ci installReact Doctor supports React, Next.js, Vite, TanStack, React Native, Expo, and Preact projects.
What you can do
Find React issues locallyReport only issues introduced by a branchComment on risky pull request changesInstall the skill for coding agentsCheck every pull request
How it fits with linting
React Doctor complements your existing lint setup. The CLI runs its curated rules, dead-code analysis, and dependency checks. It also adopts JSON ESLint or oxlint configuration when present. You can run the standalone plugins when you want React Doctor diagnostics inside an existing lint command.