Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: wiring up AddComment, CommentsHeader and Comment component
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
You can’t perform that action at this time.