Skip to content
R

react

TSX components, UI libraries, styling, state locality, layout

by lobehubFree

Launch
#1017in AI Skills
0In stores

Description

react is an agent skill from the LobeHub repository with a writing guide for TSX components. It covers styling, component choice, layout, st…

Highlights

  • Styling priority: createStaticStyles with cssVar first
  • Component priority: project, base-ui, @lobehub/ui, antd, then custom
  • Covers layout, state locality and render performance
  • Warns against importing same-named root exports over base-ui

Ratings & Reviews

No ratings yet

Be the first to rate react.

People also visit

M

modal

Modals, dialogs and confirmations

AI Skills
Launch
Z

zustand

Zustand stores: state shapes and type sources, state-only stores

AI Skills
Launch
R

radix-ui-design-system

Build accessible design systems with Radix UI primitives

AI Skills
Launch
R

react-patterns

Modern React patterns and principles

AI Skills
Launch
P

pick-ui-library

Pick the right library for a given frontend task from a curated

AI Skills
Launch
T

tailwind-best-practices

Tailwind CSS styling guidelines for Mastra Playground UI

AI Skills
Launch

react FAQ

Which styling approach comes first?

createStaticStyles with cssVar, which has no runtime cost. Inline styles and createStyles come after it for narrower cases.

Which component library should I use?

Check src/components first, then @lobehub/ui/base-ui, then @lobehub/ui, then antd, and write a custom component only as a last resort.

What if I am not sure a component exists?

Search the existing code, or look in node_modules/@lobehub/ui for the installed components.

How do I install it?

Run npx skills add https://github.com/lobehub/lobehub --skill react.

Which security audits does it have?

On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.

What are the best react alternatives?

Popular alternatives to react include modal, zustand and radix-ui-design-system. See all react alternatives

Developer Stuff

Badges