Skip to content

Alexandra Koren - week 2 hw#11

Open
sashako8 wants to merge 2 commits into
frontend-application-development-uw20:masterfrom
sashako8:master
Open

Alexandra Koren - week 2 hw#11
sashako8 wants to merge 2 commits into
frontend-application-development-uw20:masterfrom
sashako8:master

Conversation

@sashako8
Copy link
Copy Markdown

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: 1|2|3|4|5
  • Completion rating on this assignment: complete|incomplete

super(props);
}

createCards = (articles) => articles.map(article => <Article article={article} />);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't forget your index as a key!

Suggested change
createCards = (articles) => articles.map(article => <Article article={article} />);
createCards = (articles) => articles.map((article,index) => <Article article={article} key={index} />);

})
}

authorInfo = (articles) => articles.map(article => <AuthorInfo article={article} />)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is this line doing?

super(props);
}

static propTypes = {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

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