react

Develop React functional components, custom hooks, and context providers with React Query and react-hook-form.

1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/markus41/lobbi-design-system --skill react-markus41
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/markus41/lobbi-design-system/tree/main/.claude/skills/react
Command: npx skills add https://github.com/markus41/lobbi-design-system --skill react-markus41

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react, @tanstack/react-query, react-hook-form, zod.

What problem does it solve?

This Skill streamlines the development of modern React applications by providing best practices and patterns for components, state management, and performance, helping you build robust UIs more efficiently.

Core Features & Use Cases

  • Component Development: Implement functional components, custom hooks, and context providers following modern React patterns.
  • State Management: Integrate with libraries like React Query for efficient data fetching and caching.
  • Form Handling: Utilize React Hook Form and Zod for robust and validated form management.
  • Use Case: Generate a new React functional component that fetches agent data using useQuery and displays it in a memoized list, ensuring optimal performance.

Quick Start

Create a React functional component named 'AgentCard' that displays agent name, type, and status.

Frequently Asked Questions about react

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

FAQPage Schema
How do I build React components with hooks and state management?

React components use functional components with hooks like useState and useContext for state management. Combine custom hooks with context providers to share state across your component tree, following modern React patterns for maintainable UIs.

Can I fetch data in React and cache it efficiently?

Yes, React Query (TanStack React Query) handles data fetching, caching, and synchronization automatically. Use useQuery to fetch agent data, manage loading states, and automatically cache results without manual state handling.

What's the best way to handle forms and validation in React?

React Hook Form paired with Zod provides lightweight form management and schema-based validation. This combination reduces re-renders, simplifies form logic, and ensures type-safe validated input handling in TSX components.

How do I structure memoized components for performance?

Use React.memo to prevent unnecessary re-renders of functional components. Combine memoization with custom hooks and context to optimize rendering performance when displaying lists of data like agent cards.

Does React work with TypeScript for type-safe components?

Yes, TypeScript integrates seamlessly with React functional components and TSX syntax. Type-safe components combined with React Hook Form and Zod validation provide end-to-end type safety across your frontend application.

What should I know before adopting React Query for data fetching?

React Query replaces manual useState and useEffect patterns with declarative data fetching. It requires understanding queries, mutations, and cache management, but eliminates common data-fetching pitfalls like stale data and race conditions.