Use XState As An ES Module
I didn't find directions on how to use XState as an ES module in the docs. This is what I'm doing for that approach.
This looks like the same way node apps do things, but I'm using vanilla js and it wasn't clear at the start. Hence this post.