Created
May 5, 2016 12:53
-
-
Save witnessmenow/8a9952569ba184ae2008313b85abfdf5 to your computer and use it in GitHub Desktop.
Node React wrapper
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
import { Conversation } from 'chat-template'; | |
import ReactDOM from 'react-dom'; | |
import React from 'react'; | |
const showChatTemplate = (messages, element, delay = 1, height = 300) => { | |
ReactDOM.render(<Conversation delay={delay} height={height} messages={messages} />, | |
element); | |
}; | |
module.exports = showChatTemplate; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment