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/packages/svelte/tests/runtime-runes/samples/create-context/Child.svelte

14 lines
196 B

<script>
import { get, has, has_unset } from './main.svelte';
const message = get();
</script>
<h1>{message}</h1>
{#if has()}
<h2>it's me</h2>
{/if}
{#if !has_unset()}
<h2>or not</h2>
{/if}