Last active
January 31, 2018 19:50
-
-
Save Mk-Etlinger/7f7874ae828ccc1c018de21d615a151a to your computer and use it in GitHub Desktop.
React Component Example
This file contains hidden or 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 React, { Component } from 'react'; | |
class ChatBox extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
maintainState: 'here' | |
} | |
} | |
render() { | |
return ( | |
<section> | |
<Header color={ userSettings.headerColor } /> | |
<MessageWindow fontStyle='arial' /> | |
<TextInput full={ true } /> | |
<Footer icons={[ <IconComponent />, <AnotherIcon /> ]}/> | |
</section> | |
) | |
} | |
} | |
const mapStateToProps = state => { | |
return { | |
symptomFormData: state.symptomFormData | |
} | |
} | |
export default ChatBox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment