frontend-patterns

Provide reusable React and Next.js frontend patterns for UI architecture.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/hbvg234/jnmt.vn --skill frontend-patterns-hbvg234
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-patterns
Source: https://github.com/hbvg234/jnmt.vn/tree/main/.claude/skills/frontend-patterns
Command: npx skills add https://github.com/hbvg234/jnmt.vn --skill frontend-patterns-hbvg234

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Frontend-patterns provides a curated set of reusable frontend patterns to accelerate building scalable, maintainable UI code in React, Next.js, and related tooling.

Core Features & Use Cases

  • Pattern catalog for Component patterns (Composition Over Inheritance, Compound Components), Render Props, Custom Hooks, State Management patterns, Performance optimizations, and Accessibility.
  • Practical, example-driven guidance for React/Next.js projects, including data fetching, routing, forms, and UI patterns.
  • Real-world use cases demonstrating how to apply patterns to common frontend tasks in production apps.

Quick Start

Refactor a sample React component to use the recommended composition pattern.

Frequently Asked Questions about frontend-patterns

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

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

Scalable React component design utilizes frontend patterns like Composition Over Inheritance and Compound Components to standardize UI architecture. These patterns decouple component structure, enabling maintainable and reusable code across complex applications.

How do I implement state management and data fetching patterns in Next.js?

State management and data fetching patterns in Next.js are implemented through custom hooks and specialized data retrieval architectures. These approaches provide practical, example-driven guidance to handle routing and form data efficiently in production apps.

Can I use these frontend patterns to improve React performance and accessibility?

Yes, these frontend patterns include specific performance optimizations and accessibility guidelines for React applications. They provide practical examples demonstrating how to apply these enhancements to common frontend tasks in production environments.

How do I refactor a React component to use composition instead of inheritance?

Refactoring a React component to use composition involves restructuring your code to pass components or functions as props rather than extending base classes. The pattern catalog provides a quick start example demonstrating this exact refactoring process.

When should I use custom hooks versus render props in my React architecture?

Custom hooks separate stateful logic from UI rendering, while render props share rendering logic within components. The frontend pattern catalog provides practical guidance on choosing between these approaches based on your specific UI requirements.