showing results for - "svelte store dollar sign"
Pia
21 Jun 2019
1import { writable } from 'svelte/store';
2
3const count = writable(0);
4console.log($count); // logs 0
5
6count.set(1);
7console.log($count); // logs 1
8
9$count = 2;
10console.log($count); // logs 2