mirror of https://github.com/sveltejs/svelte
7 lines
137 B
7 lines
137 B
4 years ago
|
<script>
|
||
|
import { getContext } from 'svelte';
|
||
|
const value = getContext('foo');
|
||
|
</script>
|
||
|
|
||
|
<div>Value in child component: {value}</div>
|