What is React Doctor?
React Doctor is a static analysis tool for developers who maintain React applications. React Doctor uses deterministic checks to look for problems involving correctness, performance, security, accessibility, and maintainability. Its focus includes code that is hard to change, such as complex components and repeated JSX that may belong in a shared component.
What React Doctor can do
React Doctor provides findings for an existing codebase and for changes under review. The page shows a duplicate JSX warning on a specific line of a pull request, with a suggestion to extract a component if the copies represent the same UI concept. React Doctor also provides a health score that developers can use as a cleanup target.
- React Doctor measures component complexity.
- React Doctor flags repeated JSX.
- React Doctor provides a codebase health score.
- React Doctor reports issues introduced by a pull request.
- React Doctor can block merges at a chosen severity.
How React Doctor works
React Doctor can run from a terminal against a React codebase or as part of continuous integration. The command shown on the page is npx react-doctor@latest, and the listed operating systems are macOS, Windows, and Linux. In CI, teams can make React Doctor a required check and choose which severity should prevent a merge. The pull request check reports issues introduced by that change.
Who React Doctor is for
React Doctor is for React developers who want to review an existing codebase and teams that want a consistent check on incoming changes. The page also addresses developers who use AI coding agents to write React code. Its examples describe using findings and the health score to guide cleanup, as well as using pull request checks to catch regressions before they reach the main branch.
- Scan an existing React application for maintainability issues.
- Review React code written by an AI coding agent.
- Investigate repeated JSX before extracting a shared component.
- Check pull requests for newly introduced issues.
React Doctor pricing and access
React Doctor does not list pricing or plans in the supplied page text. The page instead shows how to access the command-line tool through npx and links to its GitHub repository. React Doctor also links to CI documentation for teams interested in required pull request checks, but the page does not describe separate pricing for that workflow.
React Doctor strengths and limitations
React Doctor connects codebase findings with pull request review. A repeated JSX finding can point to a specific location and suggest when extraction makes sense, while the CI check gives teams control over which findings prevent a merge. The scope shown on the page is React code, and merge enforcement depends on setting up the required check.
- The checks are scoped to React code.
- Merge blocking requires a required CI check.
- The pull request check reports issues introduced by the change rather than all existing findings.
Getting started with React Doctor
React Doctor can be tried on an existing codebase with npx react-doctor@latest. The resulting findings can guide a review of complex components or repeated JSX. For an ongoing review workflow, the site links to CI documentation that explains the required check. A team can then decide which finding severity should block a pull request from merging.
React Doctor FAQ
What is React Doctor?
React Doctor is a static analysis tool that checks React code for correctness, performance, security, accessibility, and maintainability issues. React Doctor can scan a codebase from the command line and report regressions introduced by pull requests in CI.
How do you run React Doctor?
React Doctor runs from the command line with npx react-doctor@latest. The page lists macOS, Windows, and Linux as supported operating systems and links to GitHub and documentation for the tool.
Can React Doctor block a pull request from merging?
React Doctor can block a pull request from merging when it is configured as a required CI check. React Doctor reports issues introduced by the pull request and prevents merging at the severity the team chooses.
What maintainability issues does React Doctor find?
React Doctor finds complex components and repeated JSX that may belong in a shared component. The page shows a duplicate JSX warning with a suggestion to extract a shared component when the copies represent the same UI concept.
Can React Doctor review React code written by AI coding agents?
React Doctor is presented as a way to check React code written by AI coding agents. Developers can run its static analysis on a codebase or configure pull request checks to flag issues introduced by code changes.
From the community
No reviews yet
Be the first to review this tool. What you write helps the next person choose.




