Skip to content

Conversation

@maple-megan333
Copy link

No description provided.


ChatEntry.propTypes = {
//Fill with correct proptypes
id: PropTypes.number,

Choose a reason for hiding this comment

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

Nice use of propTypes to control variable requirements

};

const ChatEntry = ({ id, sender, body, timeStamp, liked }) => {
const [isliked, setLiked] = useState(liked);

Choose a reason for hiding this comment

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

nice use of useState to track changes

src/App.js Outdated
import ChatLog from './components/ChatLog.js';

const App = () => {
const likeCount = chatMessages.reduce((a, obj) => {

Choose a reason for hiding this comment

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

a clever use of reduce to count

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