var UserActionCreators = Marty.createActionCreators({
addUser: function (name, email) {
this.dispatch(UserActions.ADD_USER, name, email);
}
});class UserActionCreators extends Marty.ActionCreators {
addUser(name, email) {
this.dispatch(UserActions.ADD_USER, name, email);
}
}dispatch(type, [...])
Dispatches an action payload with the given type. Any action handlers will be invoked with the given action handlers.
app
Returns the instance's application.