0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
svelte/test/js/samples/ssr-no-oncreate-etc/input.svelte
2019-02-08 08:48:10 -05:00

25 lines
359 B
Svelte

<script context="module">
export function preload(input) {
return output;
}
</script>
<script>
import { onDestroy, onMount } from 'svelte';
onMount(() => {
console.log('onMount');
});
onDestroy(() => {
console.log('onDestroy');
});
function foo() {
console.log('foo');
}
function swipe(node, callback) {
// TODO implement
}
</script>