astro-react-integrator

Integrate React components into Astro projects with client hydration directives.

1|Updated Mar 17, 2025
One-click install
npx skills add https://github.com/MaciWP/CV_Astro --skill astro-react-integrator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astro-react-integrator
Source: https://github.com/MaciWP/CV_Astro/tree/main/.claude/skills/astro-react-integrator
Command: npx skills add https://github.com/MaciWP/CV_Astro --skill astro-react-integrator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Astro, React, react-i18next, and includes references (resource) components.

What problem does it solve?

This Skill guides you in seamlessly integrating React components into Astro projects, ensuring optimal performance by choosing the right client hydration directives for each component.

Core Features & Use Cases

  • Optimal Client Directives: Select the best hydration strategy (client:load, client:idle, client:visible, client:media, client:only) to minimize JavaScript bundle size and improve load times.
  • i18n Integration: Integrate React components with Astro's internationalization (i18n) setup for multi-language support.
  • Use Case: Integrate a React ContactForm component into an Astro page using client:load for immediate interactivity, or a NewsletterSignup component using client:visible for lazy loading below the fold.

Quick Start

Integrate a React Counter component into an Astro page using client:idle to defer hydration, passing an initialCount prop.