aidenybai / aidenybai/fiber-explorer
React Review Audit
- Linguagem predominante
- JavaScript
- Estrelas
- 6
- 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] no-derived-useState — app.jsx:6
useState initialized from prop "init" — if this value should stay in sync with the prop, derive it during render instead
2. [warning] rerender-functional-setstate — app.jsx:11
setCount(count + ...) — use functional update to avoid stale closures
```
---
### ⚠️ Warnings (2)
**`no-derived-useState`**
useState initialized from prop "init" — if this value should stay in sync with the prop, derive it during render instead
> Remove useState and compute the value inline: `const value = transform(propName)`
[`app.jsx:6`](https://github.com/aidenybai/fiber-explorer/blob/b52594ac3999e2460906938157e2dd336b959277/app.jsx#L6)
**`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
[`app.jsx:11`](https://github.com/aidenybai/fiber-explorer/blob/b52594ac3999e2460906938157e2dd336b959277/app.jsx#L11)
---
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.