diff --git a/src/components/Post.js b/src/components/Post.js index 45abaed..645a2c3 100644 --- a/src/components/Post.js +++ b/src/components/Post.js @@ -18,26 +18,25 @@ class Post extends React.Component { .then(() => this.setState({isLoading: false})) } - renderComments() { - //if (comments.length) { - //return comments.map(comment => { - // return ( - //
- //
- //
- // - //
- //
- //
- // ); - //}); - //} + renderComments(comments) { + if (comments) { + return comments.map(comment => { + return ( +
+
+
+ +
+
+
+ ); + }); + } } renderPost() { const {posts} = this.props const post = posts.entities[posts.currentId] - console.log(post) return(