mikkelkrogsholm/findgloed · Archived

react

React — JavaScript library for building user interfaces with components. Use when building with React or asking about hooks, state management, effects, Server Components, Suspense, or any React APIs, patterns, or configuration. Fetch live documentation for up-to-date details.

First seen Feb 27, 2026

Installation

$ npx skills add mikkelkrogsholm/findgloed --skill react

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,601 B
  • docs SUMMARY.md 291 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

React

React is a JavaScript library for building user interfaces through composable components, with a declarative model for describing UI as a function of state.

Documentation

Key Capabilities

React has built-ins for things developers commonly reach for external packages to solve:

  • Unique IDs for accessibility: use useId() — not uuid or Math.random() for linking labels to inputs
  • Debounced/deferred UI updates: use useDeferredValue() or useTransition() — not lodash debounce for keeping UI responsive during expensive renders
  • Code splitting: use React.lazy() + <Suspense> — no extra bundler plugins or dynamic import wrappers needed
  • Optimistic UI: use useOptimistic() (React 19+) — not manual state juggling for instant feedback before server confirms
  • External store integration: use useSyncExternalStore() — not custom subscription hooks that miss concurrent-mode edge cases
  • Form action state: use useActionState() (React 19+) — not separate loading/error/data useState triplets for form submissions
  • Memoization: use React Compiler (babel-plugin-react-compiler) — not manual useMemo/useCallback everywhere; the compiler handles it automatically

Best Practices

  • State updates are asynchronous — reading state immediately after setState returns the old value. Use the functional updater form setState(prev => ...) when the new value depends on the previous, and read updated values in the next render, not inline.
  • useEffect intentionally runs twice in StrictMode — React mounts, unmounts, then remounts in development to expose missing cleanup. This is not a bug; always return a cleanup function from effects with subscriptions, timers, or event listeners.
  • List keys must be stable and unique — using array index as key breaks state preservation on reorder/filter. Always use a stable ID from the data (e.g., item.id).
  • 'use client' placement matters for Server Components — placing the directive at a layout or page root converts the entire subtree to client code, eliminating Server Component benefits. Push 'use client' as far down the tree as possible, to the smallest interactive leaf components.