react

React 19.2 component model, hooks, Actions/forms, concurrent rendering, SSR hydration, and React Compiler usage. Use when building or refactoring modern React apps with function components and TypeScript.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "react" with this command: npx skills add ggglhhh/skills/ggglhhh-skills-react

React

The skill is based on React 19.2 docs (react.dev latest), generated at 2026-02-13.

React 19.2 centers around pure components, Hook-based state, Action-driven forms, concurrent rendering primitives, and stronger compile-time optimization through React Compiler.

Preferences

  • Prefer TypeScript and function components.
  • Keep Effects for external synchronization only.
  • Use Action patterns for form submissions and optimistic updates.
  • Treat React Compiler as default optimization, add manual memoization only for measured hotspots.

Core

TopicDescriptionReference
State ModelState snapshots, update queues, reducers, and context compositioncore-state-model
Effects & Effect EventsCorrect dependency modeling, cleanup, and useEffectEvent patternscore-effects-and-events

Features

TopicDescriptionReference
Actions & Forms<form action>, useActionState, useFormStatus, useOptimisticfeatures-actions-and-forms
Transitions & SuspenseuseTransition, startTransition, useDeferredValue, Suspensefeatures-transitions-and-suspense
Async Resourcesuse(resource) and server-only cache() patternsfeatures-async-resources

Best Practices

TopicDescriptionReference
Purity & Hook RulesHook call constraints, immutable data flow, and "you might not need an effect"best-practices-purity-and-hooks-rules

Advanced

TopicDescriptionReference
SSR & HydrationStreaming HTML, hydration constraints, and mismatch preventionadvanced-ssr-and-hydration
React CompilerCompiler modes, directives, rollout strategy, and safety controlsadvanced-react-compiler

Quick Reference

Core Packages

npm i react react-dom
npm i -D @types/react @types/react-dom

Root APIs

import { createRoot, hydrateRoot } from 'react-dom/client'
import { renderToPipeableStream } from 'react-dom/server'

Form + Action Shape

const [state, formAction, isPending] = useActionState(action, initialState)

return (
  <form action={formAction}>
    <button disabled={isPending}>Submit</button>
  </form>
)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

react

No summary provided by upstream source.

Repository SourceNeeds Review
General

react

No summary provided by upstream source.

Repository SourceNeeds Review
General

react

No summary provided by upstream source.

Repository SourceNeeds Review
General

shadcn

No summary provided by upstream source.

Repository SourceNeeds Review