How to match the state of a props in redux

Hi i am reading this tutorial https://www.packtpub.com/books/content/how-get-started-redux-react-native where the guy explained a usage example redux

in a responsive native app. Well I have things there but I can see that

userReducers

not defined there in the Login.js class I'm not sure where it refers to.

Can someone help me what this is? Isn't it worth state.user

insteaduser.userReducers.user

enter image description here

+3


source to share


1 answer


This is because in your index.ios.js file when you create your redux store, you define this data in a section userReducers

.

take a look at line 10 where you create a store with reducers.



As per line 10 where you create the repository, all state variables added userReducers

will be available under state.userReducers

.

+2


source







All Articles