Nested islands in HonoX

I'm trying to nest islands in fashion similar to this:

// islands/toggleSection.tsx
export const ToggleSection = (children, isOpen, onToggle) => {
  // render accordion row if isOpen + button which fires onToggle
}  

// islands/toggleSectionGroup.tsx
export const ToggleSectionGroup = (children) => {
  const [focused, setFocused] = useState(-1);

  // cloneElement() all children to pass props isOpen and onToggle
}

// routes/index.tsx
...
return <ToggleSectionGroup>
  <ToggleSection />
  <ToggleSection />
  <ToggleSection />
</ToggleSectionGroup>
...


However, it appears that the inner islands end up rendering on the server. How could I approach this?
Was this page helpful?