Skip to content

Instantly share code, notes, and snippets.

@balkhaev
Last active September 1, 2016 21:52
Show Gist options
  • Save balkhaev/0a26f0b1f8172dfabe8d39bb6ec02f55 to your computer and use it in GitHub Desktop.
Save balkhaev/0a26f0b1f8172dfabe8d39bb6ec02f55 to your computer and use it in GitHub Desktop.
import ViewStateMachine from 'ViewStateMachine.js'
const frontendMachine = new ViewStateMachine({
name: 'frontendMachine',
type: 'specialized'
})
frontendMachine.add({
details: [ viewDetail, stateDetail ],
components: [ flashbackComponent, spectatorComponent ]
})
frontendMachine.render(document.getElementById('app'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment