Guide › Interactivity
Components inside islands
An island can use other components, including inside @if branches and @for rows.
- A component without a script is re-rendered in the browser when the props or content it gets from the island change.
- A component with a script becomes its own island and keeps its own state, starting from the props it was first given.
The to-do list on the home page shows its count with a small component whose text comes from the island's state.