Skip to content

Conversation

@jelizaga
Copy link

@jelizaga jelizaga commented May 3, 2022

Week 2 HW Submission

Please fill out the information below in order to complete your assignment. Feel free to update this comment later if necessary.

  • Comfort rating on this assignment: 3
  • Completion rating on this assignment: complete


// Determine whether to display the "★ Member preview" element.
const memberPreviewClasses =
memberPreview ? "member-preview" : "member-preview hidden";
Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't seen the use of CSS for hiding/showing these elements before. Nice job.


ArticleContent.propTypes = {
title: PropTypes.string.isRequired,
description: PropTypes.string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: This could probably be required. I think one description is an empty string, but that's still a string.

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