react

Blueprint React 18+ TypeScript components with React Query, Context, and Hook Form.

Updated Oct 28, 2025
One-click install
npx skills add https://github.com/kaxuna1/ecomsite --skill react-kaxuna1
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/kaxuna1/ecomsite/tree/main/.claude/skills/react
Command: npx skills add https://github.com/kaxuna1/ecomsite --skill react-kaxuna1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps frontend teams streamline building scalable React-based UIs by providing a structured blueprint for components, client-side state, and form handling.

Core Features & Use Cases

  • Component patterns: Functional components, hooks, and TS interfaces for reusable UI blocks.
  • State management: Server state with React Query, global state via Context, and local UI state with useState.
  • Forms & validation: Integrates with React Hook Form for complex forms and simple validations.
  • Use Case: When building a mobile-first storefront UI, use these patterns to connect to backend APIs, manage cart state, and ensure accessible components.

Quick Start

Start by bootstrapping a Vite + React + TypeScript project, install dependencies, and follow the recommended project structure described in this skill. Entry point: frontend/src/main.tsx → App.tsx

Frequently Asked Questions about react

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

FAQPage Schema
What is the best way to manage server state and global state in React?▼

For React state management, this skill uses React Query for server state and Context for global state, providing a cohesive blueprint to separate API data from local UI state via useState.

How do I structure React components and forms with TypeScript?▼

Structure React components using functional components, hooks, and TS interfaces. For React forms, integrate React Hook Form to handle complex form workflows and simple validations while enforcing type-safety.

Can I use this React blueprint for a mobile-first storefront UI?▼

Yes, this React blueprint supports mobile-first storefront UIs by providing component patterns to connect backend APIs, manage cart state via Context, and ensure accessible components throughout the frontend structure.

How do I start building a React 18 TypeScript project with this skill?▼

To start building a React 18 TypeScript project, bootstrap a Vite + React + TS project, install dependencies like React Query and React Hook Form, and follow the recommended structure starting at frontend/src/main.tsx.

Does React Query work with Context for state management?▼

React Query works alongside Context by separating server state from global client state; React Query fetches and caches API data while Context manages global UI requirements like cart state.

What are the recommended React component patterns for type-safety and memoization?▼

Recommended React component patterns enforce type-safety through TS interfaces and optimize rendering with memoization, utilizing functional components and hooks to build accessible, reusable UI blocks.