xstate-viz
xstate-viz copied to clipboard
Feature request: Provide <Preview> component
Running a local version of xstate-viz like in the public folder works, but it would be even better if we could provide a <Preview machine={myMachine} /> component that allows passing in a machine instance regardless if developed in typescript or javascript.
In addition when using <Preview /> the <StateChart previewOnly={true}> component would remove some functionality that is not required when running locally.
See this branch for a POC https://github.com/RainerAtSpirit/xstate-viz/pull/new/previewOnly
