React Doctor shows static warnings for a React project. To review the report, start with the rule and the line number, read the component, and decide whether there is a problem in its real behavior. Then make a small fix and run the same check again.
- Step 1. Record the version and scan scope
- Step 2. Reproduce the original check
- Step 3. Review the meaning of the warnings in code
- Step 4. Fix the component and run the same check again
- How to use the report in team work
- What to record for repeat runs
Step 1. Record the version and scan scope
Run the check from the project, or pass the path to a single folder you want to scan. For an initial evaluation, take a minimal React project where package.json declares React and React DOM, and record the tool version. Check the current flags through help and the project documentation. Separately decide which external functions are acceptable for internal code: rating calculation, telemetry, and dependency checks each have their own options. React Doctor source files and documentation · Tool documentation
In the local run below, Node.js 22.23.5 and React Doctor 0.9.23 were used. The project consists of a single Products.jsx file and a dependency list. The team ran static analysis on the training project with standard parameters and verbose output. If company policy does not allow access to external services, review the no-score, no-telemetry, and no-supply-chain options in the help for the current package. This changes the report contents and may remove the final score.
npx --yes react-doctor@0.9.23 . --verbose
Step 2. Reproduce the original check
In the training component, the number of products was calculated through state and an effect, although it was already available in props. The list items were tied to indexes instead of IDs. The example assumption: products have unique stable IDs, and the order may change.
import { useEffect, useState } from "react";
export default function Products({ products }) {
const [count, setCount] = useState(0);
useEffect(() => {
setCount(products.length);
}, [products]);
return (
<section>
<p>{count} products</p>
<ul>
{products.map((product, index) => <li key={index}>{product.name}</li>)}
</ul>
</section>
);
}
The report scanned one file and showed two warnings, with a score of 75 out of 100 in this run. This is a measurement of the tool on a small training project. It does not say anything about the quality of other applications or the speed of the interface.
Step 3. Review the meaning of the warnings in code
| Line and rule | Why the fix is appropriate in the example | How to verify it |
|---|---|---|
| Products.jsx:6, no-derived-state | The list length is already computed from products. A separate state changes after render | For an empty, short, and updated list, the output should match the length |
| Products.jsx:12, no-array-index-as-key | When the order changes, the old index points to a different object | For each product, the key stays the same before and after sorting |
Do not treat every warning as a confirmed defect. The link between a key and its position is especially important when the order changes and child components have local state. If an ID is missing or is not unique among neighbors, discuss a stable key in the data model. Do not generate a random key during render just to remove the warning. React describes the relationship between keys and list item matching. List keys in React · When an effect is not needed
Step 4. Fix the component and run the same check again
export default function Products({ products }) {
return (
<section>
<p>{products.length} products</p>
<ul>
{products.map((product) => <li key={product.id}>{product.name}</li>)}
</ul>
</section>
);
}
After the replacement, the same command was run on the same folder. The report again processed one file and showed 100 out of 100 and “No issues found!”. The CLI diagnostic results were checked before and after the fix. Browser behavior and performance were not measured. In a production project, supplement the static run with a test that swaps and replaces cards. It is also important to verify the input contract, for example that products is always an array.
For the second run, keep the version, scan scope, and report next to the diff. If the first run scanned the whole project, the second should cover the same files. If several rules or dependencies changed, record that separately from the component fix. Compare specific warning IDs. A higher score can hide another new warning.
How to use the report in team work
On the first check, group warnings by code area and expected behavior. For each one, add an owner, a link to the file, and a way to confirm the fix. Fix verified warnings in small batches. If a rule requires a data change, record the dependency before refactoring. For a work run, these will be useful React Doctor card and analysis of CLI choice and skills in agent work.
What to record for repeat runs
For the team, it is useful to keep a machine-readable report and a short human decision. In version 0.9.23, the CLI help shows json mode and result saving through json-out. If you need to look only at new warnings, review the selected comparison mode and the base rules. It is useful to save the full report before narrowing the scope. This material shows verified results from the verbose text mode; JSON mode was not used in the training example.
For each warning, write why it is a problem in this component specifically. For example, if the list is always static, the risk of reordering is lower. If the array comes after filtering, replacement, or sorting, a stable key becomes part of correct row matching. To reproduce, attach the minimal input and the observed effect. Separately note the run time and the file set so that tool rule updates are visible alongside changes in the project itself.
Setting up project checks with the studio
Vladimir Lomtsev’s AI studio helps define a safe scan scope, prepare a repeatable run set, and connect results to the engineering queue. To start, take a small project, one report, and one example warning that the team is ready to review.
Conclusion
Keep the version and scan boundaries, verify each selected warning in real code, and compare the specific rule before and after the fix. For the final decision, supplement the static report with a component behavior check.
Official sources verified on 2026-11-23.



