server-container

Separate data fetching and state logic from presentational UI components.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/grvpanchal/elegant-opencode --skill server-container
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: server-container
Source: https://github.com/grvpanchal/elegant-opencode/tree/main/skills/server-container
Command: npx skills add https://github.com/grvpanchal/elegant-opencode --skill server-container

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Containers separate data orchestration and business logic from Presentational UI, enabling simpler testing and easier reuse of components.

Core Features & Use Cases

  • Smart vs Dumb separation: Containers handle data fetching, state management, and logic; presentational components render UI based on props.
  • Data orchestration: Containers fetch, transform, and pass data to child components.
  • Reusability through hooks: Extract reusable logic into custom hooks to share across components.
  • Use Case: Extract data logic from a view to improve maintainability and testability.

Quick Start

Identify a presentational component and wrap it with a thin Container that connects to the store, triggers data fetches, and passes data through props.

Frequently Asked Questions about server-container

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

FAQPage Schema
What is the container-presentational pattern in React?

Separating data logic from UI rendering involves wrapping presentational components with a thin container. This container connects to the Redux store, triggers data fetches, and passes the transformed data through props to the child component for rendering.

How do I decouple Redux state logic from my UI components?

You can decouple Redux state logic by wrapping your UI in a container that coordinates data fetching and state. Extract reusable data orchestration logic into custom hooks to share across multiple components without cluttering the UI.

Does the container-presentational architecture work without Redux?

Yes, the container-presentational architecture applies to modern component-based frameworks beyond Redux. Containers can coordinate local state and data fetching independently, passing props to presentational components for rendering.

What is the best way to structure frontend components for maintainability?

The best way to structure frontend components for maintainability is separating smart containers from dumb presentational views. Define clear naming conventions and use reusable hooks to handle data orchestration, resulting in simpler testing and highly reusable UI code.

When should I not use container components in frontend architecture?

You should avoid using container components when a view has minimal data orchestration or state logic. If a component manages no complex data fetching, forcing a container-presentational separation adds unnecessary boilerplate without improving maintainability.