You can create a custom store in Svelte and do almost the same: import { writable } from 'svelte/store'; export default function(state) { const { subscribe, set, update } = writable(state); return { subscribe, getArea()…
You can create a custom store in Svelte and do almost the same: import { writable } from 'svelte/store'; export default function(state) { const { subscribe, set, update } = writable(state); return { subscribe, getArea()…