0
0
Astroframework~5 mins

Choosing the right framework for each island in Astro - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ALoad small interactive parts separately
BUse only one framework for the entire page
CLoad the whole page with JavaScript at once
DAvoid using JavaScript completely
Which framework is best for highly interactive UI with complex state?
AStatic HTML
BMarkdown
CCSS only
DReact
Why might you choose Svelte for an Astro island?
AIt produces large JavaScript bundles
BIt has no interactivity
CIt creates small, fast-loading interactive parts
DIt only works on server side
What is a risk of mixing many frameworks in Astro islands?
APage loads too fast
BToo much JavaScript slows down the page
CPage becomes too static
DNo interactivity is possible
How does Astro improve page speed with islands?
ABy loading JavaScript only for interactive islands
BBy avoiding HTML
CBy loading all JavaScript upfront
DBy using only one framework
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.