react-patterns

Organize modern React patterns for component design, hooks, state, and TypeScript.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/marablemarcel/Living-Lytics --skill react-patterns-marablemarcel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-patterns
Source: https://github.com/marablemarcel/Living-Lytics/tree/main/living-lytics/.agent/skills/react-patterns
Command: npx skills add https://github.com/marablemarcel/Living-Lytics --skill react-patterns-marablemarcel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent React patterns and guidelines can lead to fragile components, bloated boilerplate, and difficult maintenance. This skill provides a concise collection of modern patterns and principles to help teams build maintainable, scalable React applications.

Core Features & Use Cases

  • Component Design Principles: server, client, presentational, and container component roles to clarify responsibilities.
  • Hook Patterns & Best Practices: guidelines for extracting reusable logic and maintaining clean effects.
  • State Management & Typing: guidance on local, context, and server state, including TypeScript considerations.
  • Performance & Testing: strategies for memoization, rendering optimization, and test-focused patterns.
  • Real-world Use Case: refactor a small UI into modular components with hooks and proper state placement.

Quick Start

Refactor a sample component to apply hook, composition, and performance patterns.

Frequently Asked Questions about react-patterns

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

FAQPage Schema
What are the best React patterns for building scalable frontend architecture?

Scalable React patterns organize component design by separating server, client, presentational, and container roles to clarify responsibilities. This approach improves maintainability by codifying hook extraction, state management, and TypeScript typing guidelines across typical frontend projects.

How do I refactor a React component to use modern hooks and composition patterns?

Refactoring React components involves applying hook patterns to extract reusable logic, maintaining clean effects, and using composition to modularize UI elements. Proper state placement across local, context, and server boundaries ensures maintainable component architecture.

When should I use memoization and performance optimization techniques in React?

Memoization and rendering optimization techniques in React should be applied when performance bottlenecks emerge from unnecessary re-renders. Strategies include targeted component memoization, proper state management, and test-focused patterns to validate rendering efficiency.

Does this React patterns guidance cover TypeScript typing for state management?

Yes, the React patterns guidance covers TypeScript considerations for state management across local, context, and server state. It provides typing guidelines to ensure robust component architecture and maintainable code quality in frontend projects.

Why are inconsistent React patterns causing fragile components and maintenance issues?

Inconsistent React patterns lead to fragile components, bloated boilerplate, and difficult maintenance because responsibilities become unclear. Codifying modern patterns for component design, hooks, and state management eliminates inconsistency and improves overall code quality.