Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

fe-react

/fe-react

Pisze i przegląda komponenty i hooki React 19 w aplikacjach Next.js, Vite albo React Router, dbając o stan, efekty i wydajność.

Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pisze i przegląda komponenty i hooki React 19 w aplikacjach Next.js, Vite albo React Router, dbając o stan, efekty i wydajność.

Wyzwalacze z opisu

review this React code
Oryginalny opis (EN)

Writes and reviews React 19 components (also inside Next.js, Vite or React Router apps) - keys, state, effects, events, refs, forms with actions, memoization and React Compiler - so they stay correct, accessible and fast. Use when creating or editing a .jsx or .tsx component or hook, fixing a re-render or stale-state bug, or when asked "review this React code".

Jak działa

  1. Rules
  2. Do this
  3. Check
  4. References
Sekcje z nagłówków SKILL.md, w oryginale · 34 linii, 366 słów
Podgląd SKILL.md
---
name: fe-react
description: Writes and reviews React 19 components (also inside Next.js, Vite or React Router apps) - keys, state, effects, events, refs, forms with actions, memoization and React Compiler - so they stay correct, accessible and fast. Use when creating or editing a .jsx or .tsx component or hook, fixing a re-render or stale-state bug, or when asked "review this React code".
license: MIT
compatibility: Any agent that reads Agent Skills. The audit command needs Node.js 20 or newer.
metadata:
  title: React components
  area: frameworks
  lane: B
  requires: react
  globs: "**/*.jsx **/*.tsx"
  rules: "react/no-array-index-key react/no-derived-state-effect react/no-nested-component a11y/no-click-on-static a11y/img-alt"
  version: 0.1.0
---

# React components

Read `.frontend-skills/profile.json` (React version, framework, state and data libraries) and `.frontend-skills/lessons.md` first when they exist; a confirmed lesson wins over this skill.

## Rules

- Keys come from the data (`key={item.id}`), never the array index for lists that change (react/no-array-index-key).
- Compute derived values during render; an effect only synchronises with something outside React (react/no-derived-state-effect).
- Declare components at module level; never define a component inside another (react/no-nested-component).
- Keep state minimal and close to where it is used; lift it only as far as the nearest shared parent.
- Handle user actions in event handlers, not in effects that watch state.
- Every effect that subscribes, listens or starts a timer returns a cleanup.
- Interactive elements are `<button>` and `<a>`, not `div` with `onClick` (a11y/no-click-on-static); every `<img>` has `alt` (a11y/img-alt).
- Never mutate state or props; never call hooks conditionally; never read `ref.current` during render.

## Do this

1. Check the profile for the React version: on React 19 use `use`, form actions (`<form action={fn}>`, `useActionState`, `useFormStatus`), `ref` as a prop (no `forwardRef`) and `<title>`/`<meta>` in components.
2. If React Compiler is enabled (`babel-plugin-react-compiler` or the framework option), do not add `useMemo`, `useCallback` or `memo` by hand for render speed; write plain code that follows the rules of React.
3. Without the compiler, memoize only what a profiler shows to be slow, or values passed to memoized children and effect dependencies.
4. Fetch data with the framework (Server Components, loaders) or a data library (TanStack Query, SWR); a raw fetch in `useEffect` needs a cleanup flag against race conditions.
5. Split a component when it has two reasons to change; keep files to one exported component plus small private helpers.

## Check

- `npx github:dawidolko/frontend-skills audit --changed` reports index keys, clickable `div`s and missing `alt`.
- Run the project's lint with `eslint-plugin-react-hooks` (rules of hooks, exhaustive deps); never silence it to pass.
- Watch the React DevTools Profiler for components that re-render with unchanged props.

## References

- [references/react.md](references/react.md): effects and when not to use them, state structure, React 19 APIs, compiler and memoization, data fetching and Next.js notes. Read it for a new feature, a hook, or a performance problem.
Pliki w paczce (2)
  • SKILL.md 3 KB
  • references/react.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie fe-react.

Migawka bazy z 13.11.2026 · wersja paczki 26501ba2ddd6 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100react-patterns
    Pisze i przegląda idiomatyczny React: minimalny stan, efekty tylko dla systemów zewnętrznych, dane przez loadery, klucze i akcje.
  • 90react
    Pisze i przegląda komponenty React: hooki, efekty, granice komponentów, miejsce stanu i problemy z re-renderami.
  • 100react-components-and-hooks
    Pisze komponenty i hooki React, obejmujące modele, efekty, listy, obszary bezpieczne i granice błędów w aplikacjach mobilnych.
  • 100react-guide
    Pomaga budować i edytować komponenty React 19+, hooki i routing aplikacji, w tym Server Components, Form Actions i React Compiler.
  • 100react-modern
    Pisze i debuguje komponenty React, hooki i pobieranie danych w dowolnej konfiguracji projektu, także w Next.js.
  • 100react
    Pomaga tworzyć i zmieniać komponenty, hooki i elementy interfejsu w pakietach react-ui oraz ui-components.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.