Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.