React Frontend Development

Develop React frontend components with TypeScript, Tailwind CSS, and shadcn/ui.

Updated Oct 12, 2025
One-click install
npx skills add https://github.com/amo-tech-ai/medellin-spark --skill react-frontend-development-amo-tech-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: React Frontend Development
Source: https://github.com/amo-tech-ai/medellin-spark/tree/main/.claude/skills/frontend-dev
Command: npx skills add https://github.com/amo-tech-ai/medellin-spark --skill react-frontend-development-amo-tech-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill accelerates frontend development for Medellin Spark by providing a reusable React + TypeScript pattern with Tailwind CSS, shadcn/ui components, and data handling via React Query. It reduces boilerplate and enforces UI consistency across features.

Core Features & Use Cases

  • Component Patterns: Standard structure for React components with optional hooks, state management, and UI patterns.
  • Data & Auth: integrates with Supabase for auth and data access, enabling secure UI with edge function support.
  • Styling & UI: Tailwind CSS with shadcn/ui components ensures consistent, accessible visuals.
  • Use Case: Build a dashboard widget that fetches data from Supabase, shows loading/error states, and supports optimistic updates.

Quick Start

Use the React Frontend Development skill to scaffold a new component in a Vite + TS project, styled with Tailwind, wired to Supabase, and using React Query for data fetching.

Frequently Asked Questions about React Frontend Development

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

FAQPage Schema
How do I build React components with TypeScript and Tailwind CSS?

Build React components by structuring them with TypeScript for type safety, styling with Tailwind CSS utility classes, and using shadcn/ui components for consistent, accessible UI patterns. This approach enforces typing discipline while reducing custom CSS and maintaining visual coherence across your application.

How do I fetch data from Supabase in React and handle loading states?

Use React Query to fetch data from Supabase with built-in loading and error state management. React Query handles caching, retries, and background synchronization, while you structure components to display loading spinners and error messages based on query status.

Can I use React Query with Supabase authentication?

Yes. Integrate Supabase authentication with React Query by configuring queries to use Supabase client methods for both auth and data fetching. React Query manages request state across authenticated sessions, supporting secure data access with edge function integration.

What's the best way to structure reusable React components in a TypeScript project?

Structure components with TypeScript interfaces for props, extract hooks for state logic, and apply Tailwind CSS consistently. Use shadcn/ui as your component foundation to establish patterns others can follow, reducing boilerplate and ensuring UI consistency across features.

Do I need a specific build tool to use React with TypeScript and Tailwind?

Vite with TypeScript support is the recommended setup for this pattern. Vite provides fast development builds and HMR, while TypeScript and Tailwind CSS integrate seamlessly. This combination enables rapid iteration on React components with strong type checking.

How do I handle optimistic updates when mutating data in React Query?

Use React Query's mutation API to update the cache optimistically before the server responds, then roll back on failure. This technique improves perceived performance by reflecting changes instantly while Supabase processes the update in the background.