Hacker Newsnew | past | comments | ask | show | jobs | submit | PaulMaly's commentslogin

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() { ... }
  };
};


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: