Last active
August 10, 2017 18:25
-
-
Save gyver98/2bc410b7c7aa07ac4def49702ba21738 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 TeslaWheels from '../components/TeslaWheels/TeslaWheels'; | |
import { connect } from 'react-redux'; | |
import { changeWheel } from '../actions' | |
const mapStateToProps = (state) => { | |
return { | |
value: state.config.wheels | |
} | |
} | |
const mapDispatchToProps = (dispatch) => { | |
return { | |
changeHandler:(size) => { | |
dispatch(changeWheel(size)) | |
} | |
} | |
} | |
const TeslaWheelsContainer = connect(mapStateToProps, mapDispatchToProps)(TeslaWheels) | |
export default TeslaWheelsContainer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 13 needs to be
handleChangeWheels:(size) => {
Image on tutorial is correct and also redux tutorial project on github.