Skip to content

Use stateless functional component in dumb example #175

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

Merged
merged 1 commit into from
Nov 5, 2015
Merged

Use stateless functional component in dumb example #175

merged 1 commit into from
Nov 5, 2015

Conversation

sirreal
Copy link
Contributor

@sirreal sirreal commented Nov 5, 2015

"Dumb" components like this example seem to be an obvious place to use React 0.14 stateless functional components. This PR changes the example to use one.

I don't know if a stateful component was a concious choice, but I would prefer stateless in this situation and I think it should be considered for the example.

"Dumb" components like this example seem to be an obvious place to use React 0.14 stateless functional components. This PR changes the example to use one.

I don't know if a stateful component was a concious choice, but I would prefer stateless in this situation and I think it should be considered for the example.
@omnidan
Copy link
Contributor

omnidan commented Nov 5, 2015

@sirreal thank you 😁 It probably just hasn't been updated to 0.14 yet.

omnidan added a commit that referenced this pull request Nov 5, 2015
Use stateless functional component in dumb example
@omnidan omnidan merged commit c2acf95 into reduxjs:master Nov 5, 2015
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.

2 participants