|
|
|
@ -16,7 +16,7 @@ Anything exported from a `context="module"` script block becomes an export from
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
...we can then import it from `App.svelte`...
|
|
|
|
...we can then import it in `App.svelte`...
|
|
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
```html
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
@ -32,4 +32,4 @@ Anything exported from a `context="module"` script block becomes an export from
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
> You can't have a default export, because the component *is* the default export.
|
|
|
|
> You can't have a default export, because the component *is* the default export.
|
|
|
|
|