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.../ChildComponent.svelte

7 lines
137 B

<script>
import { getContext } from 'svelte';
const value = getContext('foo');
</script>
<div>Value in child component: {value}</div>