react-architectural-patterns

Codifies React architectural patterns for scalable component organization.

2|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/masanao-ohba/claude-manifests --skill react-architectural-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-architectural-patterns
Source: https://github.com/masanao-ohba/claude-manifests/tree/main/skills/typescript-react/architectural-patterns
Command: npx skills add https://github.com/masanao-ohba/claude-manifests --skill react-architectural-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React projects often grow in complexity as components and patterns multiply. This Skill provides clear architectural guidance to structure React code for maintainability, scalability, and performance.

Core Features & Use Cases

  • Container/Presenter pattern: separate data fetching from UI rendering to improve testability and performance.
  • Custom Hooks design: promote reusable, focused logic with consistent data flows.
  • Error & Suspense boundaries: robust error handling and smooth loading experiences in large UIs.
  • Code organization guidance: scalable folder structures and conventions for components, hooks, and utilities.
  • Use Case: Apply these patterns in a complex dashboard to keep components testable and reusable as the app evolves.

Quick Start

Create or open a React project and gradually apply Server/Client Component distinctions, container/presenter separation, and hook-driven state management to modules in your UI.

Frequently Asked Questions about react-architectural-patterns

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

FAQPage Schema
How do I structure a React project for scalability as components multiply?

Structure React projects for scalability by applying a Container/Presenter model, custom hooks, and scalable folder organization conventions to separate data fetching from UI rendering and maintain clear separation of concerns.

What is the best way to separate server components and client components in Next.js?

Separate Next.js server components and client components by prescribing distinct data flow and state management boundaries, ensuring robust error handling and smooth loading experiences through Error and Suspense boundaries across large UI systems.

How do I use the Container/Presenter pattern to improve React component testability?

Improve React component testability with the Container/Presenter pattern by isolating data fetching logic in containers and delegating UI rendering to presenters, promoting reusable and focused custom hooks for consistent data flows.

Can I apply these React architectural patterns to an existing dashboard application?

You can apply these React architectural patterns to an existing dashboard by gradually introducing Suspense boundaries, hook-driven state management, and server/client component distinctions to keep modules testable and reusable as the app evolves.

Do I need React 19 to implement Suspense boundaries and custom hooks design?

React 19 is the target version for implementing these architectural patterns, applying modern toolchains alongside Next.js to prescribe Suspense boundaries, custom hooks design, and scalable component organization for large UI systems.

When should I not use a Container/Presenter model in frontend architecture?

Avoid the Container/Presenter model in frontend architecture when a UI system does not require strict separation of data fetching from rendering, as simpler component compositions may suffice without the overhead of custom hooks and prescribed boundaries.