Skip to content

Instantly share code, notes, and snippets.

@cassiozen
Created April 28, 2015 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cassiozen/12ac098afab510e9e7d4 to your computer and use it in GitHub Desktop.
Save cassiozen/12ac098afab510e9e7d4 to your computer and use it in GitHub Desktop.
create: function(text) {
// Instead of using the helper
// AppDispatcher.handleViewAction(...)
// Dispatch directly
AppDispatcher.dispatch({
actionType: TodoConstants.TODO_CREATE,
text: text
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment