frontend-patterns

Document React and Next.js frontend development patterns.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill frontend-patterns-andyhsutw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-patterns
Source: https://github.com/AndyHsuTW/everything-llm-workspace/tree/main/.agents/skills/frontend-patterns
Command: npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill frontend-patterns-andyhsutw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to modern frontend development patterns, helping developers build more maintainable, performant, and accessible user interfaces.

Core Features & Use Cases

  • Component Patterns: Demonstrates composition, compound components, and render props.
  • Custom Hooks: Illustrates patterns for state management, async data fetching, and debouncing.
  • State Management: Explains Context API with Reducer for global state.
  • Performance Optimization: Covers memoization, code splitting, and virtualization.
  • Form Handling: Shows controlled forms with validation.
  • Error Handling: Implements Error Boundaries.
  • Animation: Integrates Framer Motion for dynamic UIs.
  • Accessibility: Details keyboard navigation and focus management.
  • Use Case: A developer can use this Skill to quickly implement best practices for a new React component, optimize a slow-loading list, or ensure their forms are accessible.

Quick Start

Use the frontend-patterns skill to learn about the composition over inheritance pattern in React.

Frequently Asked Questions about frontend-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best React component patterns for scalable applications?

React component patterns for scalable applications include composition, compound components, and render props. These approaches help you build maintainable user interfaces by favoring composition over inheritance, ensuring robust component design without rigid hierarchies.

How do I optimize performance in a Next.js application with slow-loading lists?

To optimize performance in a Next.js application with slow-loading lists, implement memoization, code splitting, and virtualization. These performance patterns reduce unnecessary renders and defer loading off-screen items to improve UI responsiveness.

How does Context API with Reducer work for global state management in React?

Context API with Reducer works for global state management by centralizing React state logic into a single store. This pattern dispatches actions to update state predictably, replacing prop drilling and ensuring scalable data flow across components.

Can I use Framer Motion to add animations and ensure accessibility in React?

You can use Framer Motion to add animations while ensuring accessibility in React by implementing keyboard navigation and focus management. This approach maintains dynamic UIs without sacrificing critical screen reader and keyboard interaction support.

How do I implement error boundaries and controlled form validation in React?

To implement error boundaries and controlled form validation in React, use Error Boundaries to catch runtime UI errors and controlled forms to manage input state. This pattern ensures robust error handling and validates user inputs before submission.