react

Guide React UI development with LobeHub component conventions and styling.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/alceupassos/hub --skill react-alceupassos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/alceupassos/hub/tree/main/.agents/skills/react
Command: npx skills add https://github.com/alceupassos/hub --skill react-alceupassos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides guidelines and best practices for developing React components in LobeHub, addressing common pitfalls and promoting efficient UI development.

Core Features & Use Cases

  • Component Conventions: Defines conventions for component naming, styling, and routing.
  • Styling Best Practices: Offers guidance on using CSS variables and inline styles effectively.
  • Component Priority: Establishes a hierarchy for component selection to ensure consistency.
  • Loading Indicators: Recommends using project-specific loaders instead of antd's Spin.
  • State Management: Encourages the use of custom hooks for managing complex state.
  • Layout Guide: Provides a comprehensive guide on using Flexbox and Center components for layout design.
  • Navigation: Specifies using react-router-dom for SPA pages and proper routing practices.
  • Desktop File Sync: Outlines the rule for syncing desktop files with their web counterparts.
  • Routing Architecture: Details the implementation of Next.js App Router and React Router DOM.
  • Common Mistakes: Lists common pitfalls and their fixes to prevent common issues.

Quick Start

Follow the React Component Writing Guide to create consistent and efficient React components in LobeHub.

Frequently Asked Questions about react

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

FAQPage Schema
What are the best practices for React UI development in LobeHub?

React UI development best practices in LobeHub involve following specific component conventions, styling guidelines, and state management rules to ensure consistency and prevent common pitfalls across the project.

How do I manage complex state in LobeHub React components?

To manage complex state in LobeHub React components, you should extract logic into custom hooks. This approach keeps components clean and maintains predictable state management across your application.

Are antd Spin components recommended for loading indicators in LobeHub?

No, antd Spin components are not recommended for loading indicators in LobeHub. You should use project-specific loaders instead to maintain visual consistency and follow the established component priority hierarchy.

What routing practices should I use for SPA pages in LobeHub?

For SPA pages in LobeHub, you should use react-router-dom and follow proper routing practices. The architecture details the implementation of both Next.js App Router and React Router DOM.

How do I handle layout design using Flexbox in LobeHub React components?

For layout design in LobeHub React components, use Flexbox and Center components according to the provided layout guide. This ensures proper alignment and structural consistency across the UI.

Do I need prior React knowledge to use this LobeHub UI guide?

Yes, you need existing React knowledge and familiarity with LobeHub UI components. This guide provides conventions and best practices rather than foundational React tutorials.