You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/server-side-rendering/samples/constructor-prefer-passed-c.../main.svelte

11 lines
241 B

<script>
import { setContext } from 'svelte';
import ChildComponent from './ChildComponent.svelte';
setContext('foo', true);
const content = ChildComponent.render({}, { context: new Map() }).html;
</script>
<div>{@html content}</div>