Complete the code to defer hydration until the browser is idle.
<MyComponent client:[1] />The client:idle directive tells Astro to hydrate the component when the browser is idle, improving performance.
Complete the code to import a component and hydrate it only when the browser is idle.
import MyComponent from './MyComponent.astro'; export default () => ( <MyComponent client:[1] /> );
Using client:idle hydrates the component when the browser is idle, delaying work to improve user experience.
Fix the error in the hydration directive to defer until idle.
<MyComponent client:[1] />The correct directive to defer hydration until the browser is idle is client:idle.
Fill both blanks to create a component that imports and hydrates only when the browser is idle.
import [1] from './[2].astro'; export default () => <[1] client:idle />;
Both blanks should be MyComponent to correctly import and use the component with client:idle.
Fill all three blanks to create a deferred hydration component with a custom prop.
import [1] from './[2].astro'; export default () => ( <[1] client:[3] message="Hello!" /> );
client:load instead of client:idle.The component name and file name are both Greeting, and hydration is deferred with client:idle.