Skip to content

Instantly share code, notes, and snippets.

@whitneyburton

whitneyburton/hooks-eleven.js Secret

Created Jan 10, 2020
Embed
What would you like to do?
React.useEffect(() => {
console.log('componentDidMount - rendered!');
channel.sendMessage({
text: 'Welcome to our customer chat with React Hooks tutorial!',
});
return function cleanUp() {
console.log(
`You have ${channel.state.messages.length} stored in local state. Goodbye!`
);
};
}, []);
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.