Complete the code to import the React component correctly in Astro.
import MyComponent from '[1]';
You import React components in Astro by specifying the relative path with the correct file extension, usually .jsx or .tsx.
Complete the code to render a Vue island in Astro.
<VueIsland client:[1] />client:load which hydrates immediatelyclient:idle which hydrates when the browser is idleThe client:visible directive tells Astro to hydrate the Vue island only when it becomes visible on the screen.
Fix the error in the Astro component usage by choosing the correct client directive.
<MyReactComponent client:[1] />client:only which only renders on client without SSRclient:server which is invalidclient:load is the correct directive to hydrate React components on the client side after page load.
Fill in the blank to create a Svelte island that loads only when idle.
<SvelteComponent client:[1] />client:load which hydrates immediatelyclient:visible which hydrates on scroll into viewThe client:idle directive tells Astro to hydrate the Svelte island when the browser is idle.
Fill all three blanks to create a React island with props and client directive.
<MyComponent [1]=[2] client:[3] />
client:visible hereThis code passes a title prop with value "Welcome" and hydrates the React island on page load with client:load.