React

Modern React 18/19 patterns and practices.

LuisSambrano 9899b25 482 B Updated

File contents

React Master Protocol

Architecture

  • Use Server Components by default in Next.js.
  • Isolate client state inside use client boundary components at the deepest possible tree level.

State Management

  • Prefer Zustand for global state. Avoid Redux.
  • Keep component state flat.

Patterns

  • Separate logic from UI via custom hooks (use...).
  • Strictly adhere to exhaustive deps in useEffect.

LuisSambrano/antigravity-config/tree/main/skills/web/react commit 9899b2512f

Frequently asked questions

npx skillmds@latest add luissambrano/react