From c6132d96ade5ef33cc985d692bd0823b2c6d4ab9 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 3 May 2017 17:45:51 -0400 Subject: [PATCH] cleaning up app component --- js/components/app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/components/app.js b/js/components/app.js index 096ebd8..d733ccc 100644 --- a/js/components/app.js +++ b/js/components/app.js @@ -6,10 +6,6 @@ class App extends React.Component { constructor(props){ super(props); this.addComment = this.addComment.bind(this); - this.state = { - comments: [ - ] - } } addComment(value){ this.state.comments.push({ body: value }); @@ -19,7 +15,7 @@ class App extends React.Component { } render() { return
- +
}