@@ -39,10 +84,20 @@ class App extends React.Component {
{/*Side Bar 2*/}
-
Channels
+
Channels
+ {this.state.rooms.map(r => ( + + ))}
{/*Main Section*/} @@ -53,8 +108,33 @@ class App extends React.Component {
{/*Main Section Content*/}
-
orange
-
blue
+
+ {this.state.messages + .filter(m => m.room === this.state.room) + .map(m => ( +
+
{m.date}
+
{m.socketId}
+
{m.text}
+
+ ))} +
+
+ + +