Skip to content
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

Merged
merged 4 commits into from
Sep 18, 2016
Merged

Use more ES6 syntaxes in the real world example #1946

merged 4 commits into from
Sep 18, 2016

Conversation

ChrisJamesC
Copy link
Contributor

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

@ellbee
Copy link
Contributor

ellbee commented Sep 18, 2016

Thanks!

The example is still working and code changes reflect those already merged in #1942 and #1945

@ellbee ellbee merged commit 480b764 into reduxjs:master Sep 18, 2016
key={repo.fullName} />
)
}
renderRepo = ([ repo, owner ]) => <Repo
Copy link
Contributor

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.

Copy link
Contributor Author

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,
Copy link
Contributor

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
}

@gaearon
Copy link
Contributor

gaearon commented Sep 19, 2016

I tweaked this do don't worry!

@ChrisJamesC
Copy link
Contributor Author

@gaearon I don't. I'm really happy to get some advice so I can make my next PRs better suited to the conventions.

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.

3 participants