svelte start here: https://svelte.dev/blog/the-easiest-way-to-get-started#2_Use_degit
install xstate npm install xstate -S
copy getting started example into script and see if it works
sigh. rollup doesn't like xstate? https://rollupjs.org/guide/en#error-this-is-undefined
apparently RikuVan ran into this:
so I'm going to put the replace() after the svelte() and run it again
add that replace, install rollup plugin via npm.
still have MANY rollup warnings:
now to poke at it until it's a cool button.
it's a cool button, I've done the 'reactive bindings' but is this best practice? will rollup mangle xstate?