Skip to content

Instantly share code, notes, and snippets.

@khle
Created January 9, 2016 05:45
Show Gist options
  • Save khle/55de9d70bf07572aec31 to your computer and use it in GitHub Desktop.
Save khle/55de9d70bf07572aec31 to your computer and use it in GitHub Desktop.
var Main = React.createClass({
getInitialState() {
return {
users: [],
messages: []
}
},
componentDidMount() {
//will show later
},
render() {
return (
<div>
<AppBar />
<div className="row">
<div className="col s6"><ChatPane data={{nickname: this.props.nickname,
messages: this.state.messages}}/></div>
<div className="col s6"><PresencePane data={this.state.users} /></div>
</div>
</div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment