コンポーネントの作成
Astroでは、コンポーネントを簡単に作成できます。以下に、基本的なコンポーネントの例を示します。
---const title = 'Hello, Astro!';---
<h1>{title}</h1>
Reactとの統合
Section titled “Reactとの統合”Astroは、Reactコンポーネントを統合することができます。
---import MyReactComponent from '../components/MyReactComponent.jsx';---
<MyReactComponent />