Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active February 5, 2019 07:34
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