Skip to content

Instantly share code, notes, and snippets.

@wclittle

wclittle/chat.js Secret

Created Dec 28, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.