svelte/test/runtime/samples/context-api-b/Leaf.svelte

8 lines
149 B

<script>
import { getContext } from 'svelte';
import { ID } from './Nested.svelte';
const name = getContext('test');
</script>
<div>{name}</div>