-
-
Save wclittle/561921c2a50213dc1f66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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