What's the best way to instantiate xstate machines so they aren't coupled with the UI components they are meant to control?
1
0
1
417
0
@codevibesmatter What kind of machines are you creating? If it's a machine specifically for controlling UI, then maybe it's meant to be coupled. Otherwise, you can emit events in an agnostic way which the UI can react to: stately.ai/docs/event-emi…