Skip to content

Instantly share code, notes, and snippets.

@Mk-Etlinger
Last active January 31, 2018 19:50
Show Gist options
  • Save Mk-Etlinger/7f7874ae828ccc1c018de21d615a151a to your computer and use it in GitHub Desktop.
Save Mk-Etlinger/7f7874ae828ccc1c018de21d615a151a to your computer and use it in GitHub Desktop.
React Component Example
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