Skip to content

Instantly share code, notes, and snippets.

@marcusstenbeck
Created January 17, 2018 20:04
Show Gist options
  • Save marcusstenbeck/3ada7b5b0d27024d14eae38041924ece to your computer and use it in GitHub Desktop.
Save marcusstenbeck/3ada7b5b0d27024d14eae38041924ece to your computer and use it in GitHub Desktop.
module.exports = {
createStore() {
let events = [];
return {
getEvents() {
return events;
},
commit(event) {
events = [...events, event];
}
};
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment