aidenybai / aidenybai/nextjs-dev-server-temp

React Review Audit

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Score: 99/100** · 0 errors · 1 warning

Copy as prompt

```text
Fix the following React Review diagnostics in my codebase.

## Warnings (1)

1. [warning] rerender-functional-setstate — pages/index.tsx:18
setCount(count + ...) — use functional update to avoid stale closures
```

---

### ⚠️ Warnings (1)

**`rerender-functional-setstate`**

setCount(count + ...) — use functional update to avoid stale closures

> Use the callback form: `setState(prev => prev + 1)` to always read the latest value

[`pages/index.tsx:18`](https://github.com/aidenybai/nextjs-dev-server-temp/blob/0c2700a3795f62311ffe68cb42944f930eec7199/pages/index.tsx#L18)

---

Last scored May 18, 2026 at 10:18 AM UTC. Maintained by [React Review](https://github.com/millionco/react-review).

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.