mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
386 B
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
}
});