import { DocsFeatureList } from "@/components/docs/docs-feature-list";

# What is React Doctor?

React Doctor is a deterministic scanner for React security risks and performance regressions. It also catches state, effect, architecture, and accessibility issues that coding agents and lint rules miss.

Run React Doctor from a project root:

```bash
npx react-doctor@latest
```

To check every pull request, run the installer and choose **Yes** when it asks to add GitHub Actions:

```bash
npx react-doctor@latest install
```

Works with React, Next.js, Vite, TanStack, React Native, and Expo.

## What you can do

<DocsFeatureList
  items={[
    {
      icon: "audit",
      text: "Find security risks locally",
      href: "/docs/overview/quickstart",
    },
    {
      icon: "branch",
      text: "Catch performance regressions in changed files",
      href: "/docs/overview/quickstart",
    },
    {
      icon: "annotations",
      text: "Comment on risky pull request changes",
      href: "/docs/ci-and-prs/github-actions-setup",
    },
    {
      icon: "teach",
      text: "Run locally, then add GitHub Actions",
      href: "/docs/getting-started/install-for-coding-agents",
    },
    {
      icon: "watch",
      text: "Check every pull request",
      href: "/docs/ci-and-prs/github-actions-setup",
    },
  ]}
/>

## How it fits with linting

React Doctor complements your existing lint setup. Start with `npx react-doctor@latest`, then run the same scanner in CI or through the standalone oxlint and ESLint plugins. The CLI respects your ignore files and reads JSON ESLint or oxlint rules when present.
