Skip to content

Instantly share code, notes, and snippets.

@wclittle

wclittle/chat.js Secret

Created December 28, 2015 22:21
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 wclittle/561921c2a50213dc1f66 to your computer and use it in GitHub Desktop.
Save wclittle/561921c2a50213dc1f66 to your computer and use it in GitHub Desktop.
export const ADD_MESSAGE = 'ADD_MESSAGE';
export const SET_MESSAGES = 'SET_MESSAGES';
export function setMessages(messages) {
return {
type: SET_MESSAGES,
messages: messages
};
}
export function addMessage(message) {
return {
type: ADD_MESSAGE,
message: message
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment