mirror of https://github.com/sveltejs/svelte
ensure spring works server-side = fixes #2773
parent
5121a3cba8
commit
a0e46ffe2d
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: `<p>0</p>`
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import { spring } from 'svelte/motion';
|
||||
|
||||
const x = spring(0);
|
||||
x.set(1);
|
||||
</script>
|
||||
|
||||
<p>{$x}</p>
|
Loading…
Reference in new issue