New
Introducing React Bench, see how different models perform on React code

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@latest

To check every pull request, install the CI workflow:

npx react-doctor@latest ci install

React Doctor supports React, Next.js, Vite, TanStack, React Native, Expo, and Preact projects.

What you can do

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.