Skip to content

Instantly share code, notes, and snippets.

@yonahforst
Created November 2, 2018 15:17
Show Gist options
  • Save yonahforst/fedb1fb6094de3dfc0efb4c7bb8c2618 to your computer and use it in GitHub Desktop.
Save yonahforst/fedb1fb6094de3dfc0efb4c7bb8c2618 to your computer and use it in GitHub Desktop.
todo list events
const events = [
{ type: 'TodoAdded', title: 'Learn CQRS' },
{ type: 'TodoAdded', title: 'Save the world' },
{ type: 'TodoCompleted', index: 0 },
{ type: 'TodoRemoved', index: 1 },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment