aidenybai / aidenybai/nextra-template

React Review Audit

Aberta
#1 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
1
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**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).

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.