Skip to content

done - #1

Open
jaywiles wants to merge 2 commits into
AustinCodingAcademy:masterfrom
jaywiles:master
Open

done#1
jaywiles wants to merge 2 commits into
AustinCodingAcademy:masterfrom
jaywiles:master

Conversation

@jaywiles

Copy link
Copy Markdown

No description provided.

Comment thread src/containers/AddCar.js
const mapDispatchToProps = (dispatch) => {
return {
addCar: (car) => dispatch(addCar(car)),
removeCar: (index) => dispatch(removeCar(index))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't really hurt, but you don't need removeCar here because the AddCar component (the one you're connecting to and setting props on) doesn't need to remove cars (never references props.removeCar).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants