mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
10 lines
202 B
HTML
10 lines
202 B
HTML
<script>
|
|
import { getSession } from '@sapper/app';
|
|
const session = getSession();
|
|
</script>
|
|
|
|
<h1>{$session.title}</h1>
|
|
|
|
<button on:click="{() => session.set({ title: 'changed' })}">
|
|
click me
|
|
</button> |