Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const handleSubmitMessage = (e) => {
e.preventDefault();
const Message = Parse.Object.extend("Message");
const newMessage = new Message();
newMessage.save({
content: inputMessage,
senderName: Parse.User.current().get('username'),
senderId: Parse.User.current().id,
});
setInputMessage("");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment