daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest May 16th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top