本文へスキップ
Kitbay
スキル

frontend-patterns

MIT2026年11月17日 更新305,644GitHubスター

A reference skill from the ECC collection with patterns for building or reviewing React and Next.js front ends.

スキルの内容

A reference skill from the ECC collection with patterns for building or reviewing React and Next.js front ends. It shows component composition, compound components that share context and render props; custom hooks for toggles, data fetching and debounced input; and shared state with Context plus a reducer. Performance sections cover memoising values, callbacks and components, lazy loading with code splitting, and virtualising long lists. It also gives examples of controlled forms with field validation, an error boundary with a retry option, list and modal transitions with Framer Motion, and keyboard navigation and focus handling for dropdowns and modals. The examples are code snippets the agent adapts, not scripts it runs.

できること

  • Compose React components and custom hooks
  • Manage shared state with Context and reducers
  • Memoise, lazy-load and virtualise lists
  • Add keyboard and focus handling