react

Create consistent React components with Lobehub UI layouts and routing.

Updated Aug 30, 2025
One-click install
npx skills add https://github.com/cute-baobao/pm --skill react-cute-baobao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/cute-baobao/pm/tree/main/.agents/skills/react
Command: npx skills add https://github.com/cute-baobao/pm --skill react-cute-baobao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing React components consistently and integrating them with Lobehub UI while managing routing can be error-prone without a clear, shared guide. This Skill provides a structured approach to component structure, styling guidelines, and navigation patterns to reduce duplication and improve maintainability.

Core Features & Use Cases

  • Component styling guidance: prefer antd-like styles for complex visuals and inline styles for straightforward cases.
  • Layout and composition: use Flexbox and Center from @lobehub/ui to build responsive, accessible layouts (see references/layout-kit.md).
  • Routing and organization: follow recommended routing architectures and file organization to simplify navigation and code reuse.
  • Reference alignment: leverage the included references to standard layouts and patterns when implementing new components.

Quick Start

Open a React component file and apply the guide to ensure consistent structure, layout, and routing.

Frequently Asked Questions about react

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

FAQPage Schema
How do I build consistent React components with Lobehub UI?▼

To build consistent React components with Lobehub UI, apply structured guidelines for component styling, prefer antd-like styles for complex visuals, and use inline styles for straightforward cases to improve maintainability.

What's the best way to structure responsive layouts in TSX components?▼

The best way to structure responsive TSX layouts is using Flexbox and Center from @lobehub/ui. This approach ensures accessible composition and standardizes layout patterns across different project files.

How does routing work with React components in this guide?▼

Routing works by following recommended routing architectures and file organization conventions to simplify navigation. This structured approach reduces duplication and streamlines code reuse across project components.

Can I use inline styles instead of antd-like styles for simple components?▼

Yes, you can use inline styles for straightforward component cases. The guidelines recommend preferring antd-like styles only for complex visuals, allowing inline styling for simpler UI elements to maintain clarity.

When do I need a SKILL.md frontmatter for React component development?▼

You need a SKILL.md frontmatter with name and description, plus a Markdown body containing actionable guidelines, when standardizing React component structure, layout, and routing across multiple projects.

Why should I use @lobehub/ui layout-kit for component composition?▼

You should use @lobehub/ui layout-kit because it provides standardized layout references for Flexbox and Center, ensuring responsive, accessible layouts and reducing integration errors when building new components.