Recall & Review
beginner
What does 'island architecture' mean in Astro?
Island architecture means building a mostly static page but adding small interactive parts called islands that load JavaScript only when needed.
Click to reveal answer
beginner
Why choose different frameworks for different islands in Astro?
Because each island can use the best framework for its needs, making the page faster and easier to build.
Click to reveal answer
intermediate
Name one benefit of using React for an island in Astro.
React is great for complex interactive UI with lots of state changes.
Click to reveal answer
intermediate
When might you pick Svelte for an island in Astro?
Choose Svelte if you want very small JavaScript bundles and fast loading interactive parts.
Click to reveal answer
advanced
What is a key consideration when mixing frameworks in Astro islands?
Make sure the frameworks don’t add too much JavaScript together, or the page might become slow.
Click to reveal answer
What is the main idea behind Astro's island architecture?
✗ Incorrect
Astro loads small interactive parts called islands separately to keep pages fast.
Which framework is best for highly interactive UI with complex state?
✗ Incorrect
React handles complex UI and state changes well, making it good for interactive islands.
Why might you choose Svelte for an Astro island?
✗ Incorrect
Svelte compiles to small JavaScript, making islands fast and lightweight.
What is a risk of mixing many frameworks in Astro islands?
✗ Incorrect
Using many frameworks can add too much JavaScript, slowing down the page.
How does Astro improve page speed with islands?
✗ Incorrect
Astro loads JavaScript only for islands that need interactivity, improving speed.
Explain how choosing different frameworks for each island in Astro can improve website performance.
Think about loading only what is needed for each interactive part.
You got /4 concepts.
Describe a scenario where you would pick React for an island and Svelte for another in the same Astro page.
Consider the complexity and size of each interactive part.
You got /4 concepts.