Back to skills
SKILL.md
React
ASecurityReact component development guide. Use when working with React components (.tsx files), creating UI, using @lobehub/ui components, implementing routing, or building frontend features. Triggers on React component creation, modification, layout implementation, or navigation tasks.
- 121 stars
- 0 votes
- 0 copies
- 4 views
- Added October 16, 2026
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add alexanderizh/spark-agent --skill react --agent claude-codeAre you the author of React?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/alexanderizh-react)---
name: react
description: React component development guide. Use when working with React components (.tsx files), creating UI, using @lobehub/ui components, implementing routing, or building frontend features. Triggers on React component creation, modification, layout implementation, or navigation tasks.
---
# React Component Writing Guide
- Use antd-style for complex styles; simple cases use inline `style`.
- Use `Flexbox` and `Center` from `@lobehub/ui` for layouts (see references/layout-kit.md).
- Component priority: `src/components` > installed packages > `@lobehub/ui` > antd.
- Use selectors to access zustand store data.
## @lobehub/ui
Search existing code for usage. Common: ActionIcon, Block, Button, Icon; Avatar, Collapse, Empty, Highlighter, Markdown, Tag, Tooltip; CodeEditor, CopyButton, EditableText, Form, FormModal, Input, SearchBar, Select; Alert, Drawer, Modal; Center, DraggablePanel, Flexbox, Grid, Header, MaskShadow; Burger, Dropdown, Menu, SideNav, Tabs. Reference: node_modules/@lobehub/ui/es/index.mjs.
## Routing
Hybrid: Next.js App Router (auth: login, signup, oauth) in `src/app/[variants]/(auth)/`; React Router DOM (main SPA) in desktopRouter.config.tsx.
- Entry: src/app/[variants]/page.tsx. Desktop: desktopRouter.config.tsx. Mobile: (mobile)/router/mobileRouter.config.tsx. Utils: src/utils/router.tsx.
- Use `dynamicElement`, `redirectElement`, `ErrorBoundary` from @/utils/router.
- **Navigation:** For SPA use `Link` and `useNavigate` from `react-router-dom`, NOT `next/link`. From stores: useGlobalStore.getState().navigate?.(path).
Files in this skill
- SKILL.md
- manifest.json
- references/layout-kit.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.