diff --git a/js/components/app.js b/js/components/app.js index 99c3f6a..97ee7fc 100644 --- a/js/components/app.js +++ b/js/components/app.js @@ -3,9 +3,25 @@ import CommentsList from './CommentsList.js'; import CommentsForm from './CommentsForm.js'; class App extends React.Component { + constructor(props){ + super(props); + this.state = { + comments: [ + { + body:'eat' + }, + { + body:'sleep' + }, + { + body:'find shelter' + } + ] + } + } render() { return
- +
} diff --git a/js/components/commentsList.js b/js/components/commentsList.js index e847e20..ab61cbf 100644 --- a/js/components/commentsList.js +++ b/js/components/commentsList.js @@ -3,7 +3,9 @@ import React from 'react'; class CommentsList extends React.Component { render() { return } }