-
Notifications
You must be signed in to change notification settings - Fork 50
nick.rodriguez.atx.advanced.1 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
ivome
left a comment
There was a problem hiding this 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> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation...
first commit