Skip to content

Teampage#8

Open
kwokwilliam wants to merge 6 commits into
masterfrom
teampage
Open

Teampage#8
kwokwilliam wants to merge 6 commits into
masterfrom
teampage

Conversation

@kwokwilliam

Copy link
Copy Markdown
Member

Creating a pull request to comment

@kwokwilliam kwokwilliam marked this pull request as ready for review April 15, 2019 01:38
const TeamMember = props => {

let select = false;
for (let i = 0; i < props.person.teams.length; i++) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think you should use .forEach here instead.

I don't know if I mentioned this before, but I actually got asked on an interview once when starting to use a for int i = 0 i < etc loop if I knew how to use forEach loops and I had to convince my interviewer that I knew how to use it effectively but was just choosing to use the other method during the interview.

<h1 className="header">Meet the Team</h1>
<body>
<div className="teams">
<seciton className="col-xs">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

seciton

also we can probably use an array mapping here and abstract this to another class

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