Using Redux with React | KIRUPA


#1
React is cool. Redux is cool. What if we combined them both to create something...extra cool?!! This tutorial explores this topic in greater detail: http://www.kirupa.com/react/using_redux_with_react.htm :stuck_out_tongue:

#2

I loved reading your react redux tutorial. Which software you used to create diagrams for this tutorial. They are pretty neat.

  • Saurabh

#3

Adobe Animate :slight_smile:

Glad you liked it!


#4

seriously, i love it … :yum::yum:


#5

Finally understood the simplicity of Redux… Thank you!


#6

There is a tricky semicolon

// Map Redux state to component props
function mapStateToProps(state) {
  return {
    countValue: state.count;  // <- here
  }
}

I am happy to find it cause I am happy I actually read your articles and not only the code. Thank you very much for these tutorials :slight_smile:


#7

thank you! I was getting an error and couldn’t figure out why! I appreciate it.

In case if someone get’s the same error:
Parsing error: Unexpected token, expected “,”

5 | function mapStateToProps(state) {
6 | return {

7 | countValue: state.count;
| ^
8 | };
9 | }
10 |