|
|
|
|
|
by PaulMaly
2420 days ago
|
|
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() { ... }
};
}; |
|