frontend-patterns

Standardize React and Next.js UI patterns for scalable interfaces.

40|8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/ysyecust/everything-claude-code --skill frontend-patterns-ysyecust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-patterns
Source: https://github.com/ysyecust/everything-claude-code/tree/main/docs/zh-TW/skills/frontend-patterns
Command: npx skills add https://github.com/ysyecust/everything-claude-code --skill frontend-patterns-ysyecust

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the problem of inconsistent frontend patterns by standardizing React and Next.js UI practices.

Core Features & Use Cases

  • Component patterns: composition over inheritance with reusable Card and Tabs patterns.
  • Hooks and state management: custom hooks, context reducers, and memoization strategies for scalable UI state.
  • Accessibility and UX: keyboard navigation, focus management, and ARIA-compliant patterns for inclusive interfaces.
  • Performance best practices: code-splitting, lazy loading, and virtualization to keep apps responsive.
  • Use Case: when building a dashboard in React/Next.js, apply these patterns to create a modular, accessible, and high-performance UI system.

Quick Start

Build a reusable Card component with CardHeader and CardBody in React, and demonstrate an accessible Tabs pattern with keyboard navigation.

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 building scalable UI?

The best React component patterns favor composition over inheritance, using reusable structures like Card and Tabs to build scalable, maintainable user interfaces. This approach standardizes UI composition to prevent inconsistent frontend practices across modern web applications.

How do I implement accessible keyboard navigation in Next.js tabs?

Accessible Next.js tabs require proper keyboard navigation, focus management, and ARIA-compliant patterns to ensure inclusive interfaces. Implementing these accessibility guidelines ensures interactive UI components are usable via keyboard inputs for users navigating without a mouse.

How do I manage state in React with custom hooks and context reducers?

State management in React uses custom hooks and context reducers to handle scalable UI state efficiently. Combining these techniques with memoization strategies ensures predictable state updates while avoiding unnecessary re-renders in complex component hierarchies.

Does this approach work for performance optimization in React dashboards?

Yes, these frontend patterns optimize React dashboard performance through code-splitting, lazy loading, and virtualization techniques. These strategies keep applications responsive by reducing initial bundle sizes and efficiently rendering large lists of data.

When should I use memoization strategies in React components?

Memoization strategies in React components should be used when optimizing scalable UI state to prevent unnecessary re-renders. Applying these performance guidelines alongside custom hooks ensures efficient updates without compromising the maintainability of complex interfaces.

Can I apply these frontend patterns to existing React and Next.js apps?

Yes, you can apply these standardized frontend patterns to existing React and Next.js apps to refactor inconsistent UI practices. The guidelines cover component composition, state management, and accessibility to deliver modular, high-performance interfaces without requiring external dependencies.