Leave a Reply

38 Comments on "React JS / Redux Tutorial – 9 – Actions and Action Creators"

Notify of
avatar

Jairus Ralf Daclan
Guest
Jairus Ralf Daclan
3 days 23 hours ago

boom, roasted

kev gi
Guest
kev gi
24 days 4 hours ago

yeah bro! this is awesome, Thanks

Justin E. Samuels
Guest
Justin E. Samuels
1 month 4 days ago

Has to be the worst Redux tut I ever went to, jeesh

Michael Kronenberg
Guest
Michael Kronenberg
2 months 17 days ago

Dude u save my day !!

Gerald Onyango
Guest
Gerald Onyango
3 months 14 days ago

Thank you for these videos, they helped me get started with redux. I'm working on this app and I'm wondering what the best way would be to pass multiple actions in bindactioncreators?

Prabhas Joshi
Guest
Prabhas Joshi
1 month 16 days ago

the first argument to bindActionCreators is an object of all the actions that you want to be available in this.props:so pass it multiple key value pairs in the call:const matchDispatchToProps = (dispatch) => bindActionCreators({ fetchUser, setUserName, setUserAge }, dispatch)also, in es6 if the key and value names are the same then we can omit writing both and just write it once,let x = "a"let obj = {"x":x}//in es6let obj = {x};and we can also omit writing the brackets of a function if there is only 1 return statement.So there you go

Ian Harris
Guest
Ian Harris
3 months 15 days ago

learning so much from these videos. thanks Bucky. except every time i watch one i keep thinking of that one video where you went off on a side note and told the story about that puss-filled chicken sandwich your friend bit into. i've been unable to eat any variety of chicken sandwich from any fast food restaurant since.

DJoeLawless
Guest
DJoeLawless
21 days 8 hours ago

puss-filled??

amir mousavie
Guest
amir mousavie
3 months 22 days ago

Thanks for your amazing tutorial, it helped me a lot, but I think it's better to use a light theme for IDE when you are recording tutorials, it will be much better to read codes. Thanks again.

Dennis Tupas
Guest
Dennis Tupas
5 months 10 days ago

matchDispatchToProps or mapDispatchToProps ??

Michael Wanyoike
Guest
Michael Wanyoike
7 days 14 hours ago

It doesn't seem to matter. I'll use 'mapDispatchToProps' just for consistency

Allison Graves
Guest
Allison Graves
4 months 9 days ago

Dennis Tupas Dennis Tupas name of the function can be anything, but it's mandatory that you pass it as second argument to connect function after mapStateToProps

Dennis Tupas
Guest
Dennis Tupas
5 months 10 days ago

I tried changing to random function name,its still working though 😀

koftunka
Guest
koftunka
5 months 18 days ago

Shweet, all works so far!

lemelon01
Guest
lemelon01
6 months 7 days ago

Thank you my friend 😉 So cool!

wpDiscuz