Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active February 5, 2019 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/c064cd8f1259089ff91a52ce66abcfc2 to your computer and use it in GitHub Desktop.
Save productioncoder/c064cd8f1259089ff91a52ce66abcfc2 to your computer and use it in GitHub Desktop.
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