-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Use more ES6 syntaxes in the real world example #1946
Conversation
key={repo.fullName} /> | ||
) | ||
} | ||
renderRepo = ([ repo, owner ]) => <Repo |
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.
This shouldn’t be autobound (not an event handler).
This is also hard to read for somebody new to this syntax.
Please format it the way it was before.
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.
Sure. Will do.
case failureType: | ||
return merge({}, state, { | ||
return { ...state, |
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 put ...state
on the next line.
return {
...state,
stuff
}
I tweaked this do don't worry! |
@gaearon I don't. I'm really happy to get some advice so I can make my next PRs better suited to the conventions. |
Convert the async example files to using fat arrows, spread operators and stateless components.
This is a follow up to what I started in #1942 and #1945
References #1800