Join Richard Gill for an in-depth discussion in this video The store, part of Performing Complex State Management with Redux.
And then we can see actions here. So we've got an action of type HELLO with no payload and then afterwards, it shows us the new store, which is also empty. So I'm gonna go ahead and put something in The Store so you can see how it's working. So here in reducers post, which is one of our reducers which kind of defines what's in The Store, I'm gonna change the initial state to be post, an array, and then I'll have, like, then a post1 in there. So now, if we go back to the site, so when we go back to the site, we can now see that posts has post key inside there and Array, so we can see that stuff's in there.
What it is, why you might want to use it. We looked at some diagrams of how Redux works and the different things that make up Redux, and then we looked at The Store, which is the most fundamental concept of Redux. In the next section, we're gonna look at using Redux in your applications.
Note: This course was created by Packt Publishing.
- What is Redux?
- Connecting your components to the store
- Firing actions
- Applying Redux reducer
- Using advanced reducers
- Dispatching asynchronous actions with Thunk
- Building a workable application