Coding task · Vue.js course · Module 9: Composables & VueUse

Practice: State Machine Composable

Create a useStateMachine composable for managing experiment states in NOVA LAB.

Task

Build useStateMachine with currentState (ref), availableTransitions (computed), transition() and canTransition(). Configuration as a parameter.