aidenybai / aidenybai/nextra-template
React Review Audit
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**Score: 99/100** · 0 errors · 2 warnings
Copy as prompt
```text
Fix the following React Review diagnostics in my codebase.
## Warnings (2)
1. [warning] rerender-functional-setstate — components/counters.tsx:10
setCount(count + ...) — use functional update to avoid stale closures
2. [warning] no-generic-handler-names — components/counters.tsx:15
Non-descriptive handler name "handleClick" — name should describe what it does, not when it runs
```
---
### ⚠️ Warnings (2)
**`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
[`components/counters.tsx:10`](https://github.com/aidenybai/nextra-template/blob/519d4a4b668b53ef2e91cd990d58a005331bc2e9/components/counters.tsx#L10)
**`no-generic-handler-names`**
Non-descriptive handler name "handleClick" — name should describe what it does, not when it runs
> Rename to describe the action: e.g. `handleSubmit` → `saveUserProfile`, `handleClick` → `toggleSidebar`
[`components/counters.tsx:15`](https://github.com/aidenybai/nextra-template/blob/519d4a4b668b53ef2e91cd990d58a005331bc2e9/components/counters.tsx#L15)
---
Last scored May 18, 2026 at 10:18 AM UTC. Maintained by [React Review](https://github.com/millionco/react-review).
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.