Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const example = Machine({
- initial: 'input',
- states: {
- input: {
- on: {
- NEXT: 'example'
- }
- },
- example: {
- initial: 'init',
- states: {
- init: {
- on: { NEXT: 'par' },
- },
- par: {
- type: 'parallel',
- states: {
- first: {
- on: {
- NEXT: '.success'
- }
- },
- second: {
- on: {
- NEXT: '.success'
- }
- }
- }
- }
- }
- },
- success: {},
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement