Created
December 28, 2017 18:03
-
-
Save Abazhenov/927eef8c5ad903de621d9af0bc4243be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { mapDispatchToProps, mapStateToProps } from '../myFancyDecorators' | |
@mapStateToProps((state) => ({ | |
users: state.users | |
})) | |
@mapDispatchToProps((dispatch, ownProps) => ({ | |
getUser(id) { | |
dispatch(ownProps.getUser(id)) | |
} | |
})) | |
export default class MyFancyComponent extends React.Component { | |
// react things in here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment