-
-
Save khle/55de9d70bf07572aec31 to your computer and use it in GitHub Desktop.
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
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