Skip to content

Conversation

sorindevops
Copy link

Final version of react chatlog

Copy link

@marciaga marciaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall good job! See specific comments for more detailed feedback.

<p className="entry-time">Replace with TimeStamp component</p>
<button className="like">🤍</button>
<p>{props.body}</p>
<p className="entry-time">{props.timeStamp}</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's where you'd use the provided Timestamp component in order to format this into a friendly-to-read date

import PropTypes from 'prop-types';

const TimeStamp = (props) => {
const timeStamp = (props) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to have modified this component. Also, React components by convention use capital letters as their names, so Timestamp was correct.

<header>
<h1>Application title</h1>
<h1>Human & Robot</h1>
<h2 className="like">LikeCount: {Hearts()} ❤️</h2>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests were expecting this text to read "3 ❤️s", which is why you saw those tests fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants