Complete the code to import a React component in Astro.
import MyComponent from '[1]';
Astro supports importing React components using the .jsx extension.
Complete the code to use a Svelte component inside an Astro page.
<SvelteComponent client:[1] />The client:visible directive loads the component when it becomes visible in the viewport.
Fix the error in this Astro component import statement.
import Button from './Button.[1]';
React components in Astro typically use the .jsx extension.
Fill both blanks to create a dictionary of components with their frameworks.
const components = { '[1]': 'React', '[2]': 'Svelte' };Button is commonly a React component, Card can be a Svelte component here.
Fill all three blanks to complete the Astro frontmatter importing multiple frameworks.
--- import ReactComp from './ReactComp.[1]'; import VueComp from './VueComp.[2]'; import SvelteComp from './SvelteComp.[3]'; ---
React uses .jsx, Vue uses .vue, and Svelte uses .svelte extensions.
