Skip to content

Instantly share code, notes, and snippets.

@gyver98
Last active August 10, 2017 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyver98/2bc410b7c7aa07ac4def49702ba21738 to your computer and use it in GitHub Desktop.
Save gyver98/2bc410b7c7aa07ac4def49702ba21738 to your computer and use it in GitHub Desktop.
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;
@backsy
Copy link

backsy commented Aug 10, 2017

Line 13 needs to be handleChangeWheels:(size) => {
Image on tutorial is correct and also redux tutorial project on github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment