You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.
3
+
description: Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.
4
4
version: 1.0.0
5
5
---
6
6
@@ -11,31 +11,9 @@ Scans your React codebase for security, performance, correctness, and architectu
11
11
## Usage
12
12
13
13
```bash
14
-
npx -y react-doctor@latest . --verbose
14
+
npx -y react-doctor@latest . --verbose --diff
15
15
```
16
16
17
17
## Workflow
18
18
19
-
1. Run the command above at the project root
20
-
2. Read every diagnostic with file paths and line numbers
21
-
3. Fix issues starting with errors (highest severity)
22
-
4. Re-run to verify the score improved
23
-
24
-
## Rules (47+)
25
-
26
-
-**Security**: hardcoded secrets in client bundle, eval()
27
-
-**State & Effects**: derived state in useEffect, missing cleanup, useState from props, cascading setState
0 commit comments