Guest User

Untitled

a guest
May 16th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. // Comment.js
  2. import React, { Component } from 'react';
  3. import CommentList from './CommentList';
  4. import CommentForm from './CommentForm';
  5. import DATA from './data';
  6. import './CommentBox.css';
  7.  
  8. class CommentBox extends Component {
  9. constructor() {
  10. super();
  11. this.state = { data: [] };
  12. }
  13. render() {
  14. return (
  15. <div className="container">
  16. <div className="comments">
  17. <h2>Comments:</h2>
  18. <CommentList data={DATA} />
  19. </div>
  20. <div className="form">
  21. <CommentForm />
  22. </div>
  23. </div>
  24. );
  25. }
  26. }
  27.  
  28. export default CommentBox;
Add Comment
Please, Sign In to add comment