Skip to content

Conversation

@nickinwaco
Copy link

first commit

@nickinwaco nickinwaco changed the title nick.rodriguez.atx1 nick.rodriguez.atx.advanced.1 Apr 18, 2017
Copy link

@ivome ivome left a comment

Choose a reason for hiding this comment

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

Overall the functionality looks OK. You do have quite a few issues in your code that eslint should tell you about. Make sure you have the linter activated in your IDE and always fix all the errors right away. That prevents you from making lots of unnecessary mistakes...

function Body() {
return (

<h1> </h1>
Copy link

Choose a reason for hiding this comment

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

Check the indentation...

}


export default Header;
Copy link

Choose a reason for hiding this comment

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

Missing propTypes


handleUserClick(event) {
console.log("Handle click", event);
console.log("the id is: ",event.id)
Copy link

Choose a reason for hiding this comment

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

Indentation...

<p key={userNames.id} onClick={this.handleUserClick.bind(this, this.props.userNames[x])}>
{this.props.userNames[x].first_name}
{this.props.userNames[x].last_name}
{this.props.userNames[x].id}</p>
Copy link

Choose a reason for hiding this comment

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

Closing p tag should be on the same indentation level as opening tag.

);// end of return;
}) // end of map function
} // end of display usernames
<UserDetail num={this.props.userNames} />
Copy link

Choose a reason for hiding this comment

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

Indentation...

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