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/runtime/samples/constructor-prefer-passed-c.../main.svelte

16 lines
256 B

<script>
import { setContext } from 'svelte';
import ChildComponent from './ChildComponent.svelte';
setContext('foo', true);
function render(node) {
new ChildComponent({
target: node,
context: new Map()
});
}
</script>
<div use:render />