-
Notifications
You must be signed in to change notification settings - Fork 1
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
Show skills and domains example #1
Conversation
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.
Please update your code
src/App.js
Outdated
|
||
getDomains() { | ||
if( this.state.data.projects != undefined) { | ||
var projects = this.state.data.projects |
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.
Please indent
src/App.js
Outdated
@@ -77,6 +77,60 @@ class App extends Component { | |||
</Row>) | |||
} | |||
|
|||
getSkills() { | |||
if( this.state.data.projects != undefined) { |
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.
用這樣比較好
if( this.state.data.projects === undefined) {
return empty
}
fixed |
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.
程式改完後,記得跑
node_modules/esformatter/bin/esformatter src/App.js -i
格式化程式碼。
那隻程式可用 npm install 安裝
src/App.js
Outdated
} | ||
skills = skills.sort() | ||
for (var i=0; i < skills.length; i++) { | ||
//skills_checkbox.push(<input type="checkbox" value={skills[i]} /> {skills[i]}) |
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.
移除無用的註解吧
src/App.js
Outdated
} | ||
domains = domains.sort() | ||
for (var i=0; i < domains.length; i++) { | ||
//domains_checkbox.push(<input type="checkbox" value={domains[i]} /> {domains[i]}) |
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.
移除無用的註解吧
No description provided.