Skip to content

astro@7.3.5

Latest

Choose a tag to compare

@astrobot-houston astrobot-houston released this 24 Sep 09:10
· 1 commit to main since this release
c2e0164

Patch Changes

  • #17736 2b8b2e8 Thanks @ematipico! - Adds a new container function called renderComponent(), which renders Astro components with inlined styles and scripts.

    Users must import the component with the new ?container query string:

    import { experimental_AstroContainer } from "astro/container";
    import TodoList from "../components/TodoList.astro?container";
    
    const container = await experimental_AstroContainer.create();
    
    const _string = container.renderComponent(TodoList);