frontend-patterns

Document reusable React and Next.js frontend patterns with code examples.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ValenBorras/upscribe --skill frontend-patterns-valenborras
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-patterns
Source: https://github.com/ValenBorras/upscribe/tree/main/.github/skills/frontend-patterns
Command: npx skills add https://github.com/ValenBorras/upscribe --skill frontend-patterns-valenborras

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Frontend teams often face fragmentation and inconsistency when implementing React and Next.js patterns, leading to duplicated code and difficult maintenance.

Core Features & Use Cases

  • Component Patterns: Composition Over Inheritance, Compound Components, Render Props.
  • Custom Hooks Patterns: useToggle, useQuery, useDebounce.
  • State Management Patterns: Context + Reducer for shared state.
  • Performance Optimization: Memoization, Code Splitting, Virtualization.
  • Form Handling Patterns: Controlled forms with validation.
  • Accessibility & Keyboard Navigation
  • Animation & UX Patterns: Framer Motion integrations and motion principles.

Quick Start

Review this skill and start applying the recommended frontend patterns to a React project to improve component structure and performance.

Frequently Asked Questions about frontend-patterns

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

FAQPage Schema
What are the standard React and Next.js patterns for component composition?

Standard React and Next.js component composition patterns include Composition Over Inheritance, Compound Components, and Render Props to structure reusable UI elements. These patterns prevent duplicated code and simplify long-term maintenance.

How do I optimize performance in a Next.js application using frontend patterns?

Optimize Next.js performance using patterns like Memoization, Code Splitting, and Virtualization. These frontend patterns reduce unnecessary renders and bundle sizes, directly improving application loading times and responsiveness.

Does this frontend pattern reference include custom hooks for data fetching?

Yes, the frontend pattern reference includes custom hooks like useQuery for data fetching, useToggle, and useDebounce. These hooks provide standardized, reusable logic for common React workflows.

What is the best way to manage shared state in React without prop drilling?

The best way to manage shared state in React without prop drilling is using the Context and Reducer pattern. This approach centralizes state logic, making it accessible across deeply nested components.

Can I find accessible UI and keyboard navigation patterns for React here?

Yes, you can find accessible UI and keyboard navigation patterns aligned with accessible UI guidelines. These patterns ensure React applications are usable and navigable for all users.

How do I handle form validation and animations in a React frontend project?

Handle forms using controlled forms with validation patterns, and implement animations using Framer Motion integrations and motion principles. These patterns standardize user input handling and UX transitions.