-
Notifications
You must be signed in to change notification settings - Fork 0
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
react/redux admin dashboard #2
base: master
Are you sure you want to change the base?
Conversation
React.js code review notes:
|
src/javascripts/components/City.js
Outdated
@@ -0,0 +1,30 @@ | |||
import React, { Component } from "react"; | |||
|
|||
class City extends Component { |
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.
- make component refactoring (City/Team/User). Look like - it can be single component EditableLabel
- add PropTypes
- don't use data structures - which will be not used (data...). Component has to accept only required data, nothing more
src/javascripts/components/Race.js
Outdated
}; | ||
} | ||
|
||
componentDidMount() { |
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.
- add error handler
- extract logic into function or into app state (see redux)
src/javascripts/components/Result.js
Outdated
|
||
import "../styles/Result.css" | ||
|
||
class Result extends Component { |
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.
- user props, don't use state in container component, just props (you don't need to edit anything here)
- move component into .../containers/Results.js
No description provided.