Created
April 10, 2017 14:47
-
-
Save NikolayGalkin/f11f67b42d8d7cfe8636dcb2a917487c 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 { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
import * as actionCreators from '../actions/index'; | |
import Main from './Main'; | |
function mapStateToProps(state) { | |
return { | |
repos: state.repos | |
} | |
} | |
function mapDispatchToProps(dispatch) { | |
return bindActionCreators(actionCreators, dispatch); | |
} | |
const App = connect(mapStateToProps, mapDispatchToProps)(Main); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment