Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- class AddComments extends React.Component {
- render(){
- const timeGiven = this.props.commentData.timestamp;
- const timeDisplay = new Date(timeGiven);
- return(
- <>
- <span>
- <p className="comment-one">{this.props.name}</p>
- <p className="display-time">{timeDisplay}</p>
- </span>
- <p className="member-comment">{this.props.commentData.comment}</p>
- </>
- )
- }
- }
- export default AddComments;
Add Comment
Please, Sign In to add comment