Skip to content

Commit

Permalink
Step 12 – Create App Component
Browse files Browse the repository at this point in the history
  • Loading branch information
ammezie committed Nov 28, 2017
1 parent c52bf6b commit 4af2580
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
import React, { Component } from 'react';
import CommentBox from './CommentBox';
import Comments from './Comments';

class App extends Component {
constructor(props) {
super(props);
this.state = {
comments: []
}
}

render() {
return (
<div className="App">

</div>
<section className="section">
<div className="container">
<div className="columns">
<div className="column is-half is-offset-one-quarter">
<CommentBox />
<Comments comments={this.state.comments.reverse()} />
</div>
</div>
</div>
</section>
);
}
}

export default App;
export default App;

0 comments on commit 4af2580

Please sign in to comment.