Skip to content

Alexandra Koren - week 2 hw#11

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

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

Conversation

@sashako8
Copy link

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} />);

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} />)

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 = {

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