0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00
astro/.changeset/thirty-dots-end.md
2024-05-24 14:41:56 +01:00

386 B

astro
patch

You can now pass props when rendering a component using the Container APIs:

import { experimental_AstroContainer as AstroContainer } from "astro/contaienr";
import Card from "../src/components/Card.astro";

const container = await AstroContainer.create();
const result = await container.renderToString(Card, {
  props: {
    someState: true
  }
});