We have added redux to our application so we can leverage all the benefits that come with uni-directional data flow. Instead of the prop drilling we would have to do in order to pass our new user object down deeper into our component trees from our app, we can now just connect those components directly to our redux store where we store all our data.
Despite the code is the same till now as Yihua explained, I always see SignIn instead of SignOut. The currentuser is always undefined in my console.log.
Despite the code is the same till now as Yihua explained, I always see SignIn instead of SignOut. The
currentuser
is always undefined in my console.log.My Console