Overview - Sharing state between framework islands
What is it?
Sharing state between framework islands means letting different parts of a web page, built with different JavaScript frameworks, talk to each other and share information. In Astro, each framework island is a small interactive component using its own framework like React or Vue. This topic explains how these separate pieces can keep data in sync and work together smoothly.
Why it matters
Without sharing state, each framework island acts alone, so user actions in one part won’t affect others. This makes the page feel broken or inconsistent. Sharing state lets the whole page behave like one app, improving user experience and making development easier by avoiding duplicated data or confusing updates.
Where it fits
Before this, you should understand what Astro framework islands are and how they work independently. After learning this, you can explore advanced state management libraries or patterns that work across frameworks, and how to optimize performance when many islands share state.