Last active
February 5, 2019 07:34
-
-
Save productioncoder/c064cd8f1259089ff91a52ce66abcfc2 to your computer and use it in GitHub Desktop.
Youtube in React: wiring up AddComment, CommentsHeader and Comment component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {CommentsHeader} from "./CommentsHeader/CommentsHeader"; | |
import {AddComment} from "./AddComment/AddComment"; | |
import {Comment} from "./Comment/Comment"; | |
export class Comments extends React.Component { | |
render() { | |
return ( | |
<div> | |
<CommentsHeader amountComments={this.props.amountComments}/> | |
<AddComment/> | |
<Comment/> | |
<Comment/> | |
<Comment/> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment