aidenybai / aidenybai/rc-deep-data

React Review Audit

Abierto
#1 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
0
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] no-array-index-as-key — src/components/FruitList.jsx:20
Array index "index" used as key — causes bugs when list is reordered or filtered

2. [warning] no-react19-deprecated-apis — src/store.jsx:6
useContext is superseded by `use()` on React 19+ — `use()` reads context conditionally inside hooks, branches, and loops; switch to `import { use } from 'react'`
```

---

### ⚠️ Warnings (2)

**`no-array-index-as-key`**

Array index "index" used as key — causes bugs when list is reordered or filtered

> Use a stable unique identifier: `key={item.id}` or `key={item.slug}` — index keys break on reorder/filter

[`src/components/FruitList.jsx:20`](https://github.com/aidenybai/rc-deep-data/blob/349df0c86ce29ea969a6726b44fb505d43ab9cc7/src/components/FruitList.jsx#L20)

**`no-react19-deprecated-apis`**

useContext is superseded by `use()` on React 19+ — `use()` reads context conditionally inside hooks, branches, and loops; switch to `import { use } from 'react'`

> Pass `ref` as a regular prop on function components — `forwardRef` is no longer needed in React 19+. Replace `useContext(X)` with `use(X)` for branch-aware context reads. Only enabled on projects detected as React 19+.

[`src/store.jsx:6`](https://github.com/aidenybai/rc-deep-data/blob/349df0c86ce29ea969a6726b44fb505d43ab9cc7/src/store.jsx#L6)

---

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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.