Front-end frameworks
यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
Build your Astro website without sacrificing your favorite component framework. Create Astro islands with the UI frameworks of your choice.
Official front-end framework integrations
Section titled Official front-end framework integrationsAstro supports a variety of popular frameworks including React, Preact, Svelte, Vue, SolidJS, and AlpineJS with official integrations.
Find even more community-maintained framework integrations (e.g. Angular, Qwik, Elm) in our integrations directory.
UI फ्रेमवर्क
Installing integrations
Section titled Installing integrationsOne or several of these Astro integrations can be installed and configured in your project.
See the Integrations Guide for more details on installing and configuring Astro integrations.
Want to see an example for the framework of your choice? Visit astro.new and select one of the framework templates.
Using framework components
Section titled Using framework componentsUse your JavaScript framework components in your Astro pages, layouts and components just like Astro components! All your components can live together in /src/components
, or can be organized in any way you like.
To use a framework component, import it from its relative path in your Astro component script. Then, use the component alongside other components, HTML elements and JSX-like expressions in the component template.
---import MyReactComponent from '../components/MyReactComponent.jsx';---<html> <body> <h1>Use React components directly in Astro!</h1> <MyReactComponent /> </body></html>