

If you want to put an initial value, you could put it in this attribute. PreloadedState is the same as the initial value in React state. However, you may need this attribute for the production environment. The default value is true, so you don't necessary to add this attribute. It's something important for your development environment. I will explain later.ĭevTools plugin links for Chrome and Firefox The attribute name will be related to selector. The reducers attribute is the mandatory option that we put our reducers as attributes. However, the most important and easy to understand are reducers, devTools, and preloadedState I'm not going crazy to explain all because I don't have that experience with those. Pay attention to my snippet again.ĬonfigureStoreOptions has several attributes ( ? means optional): you can read the documentation here.ĬonfigureStore is only accepting one parameter, which is an Object, which is called ConfigureStoreOptions. I want to cover configure store a little bit. What can you do if you have a react state? You can get the state and you can set state, right?Įnter fullscreen mode Exit fullscreen mode

I always make Redux simple when I hear about Redux. The only difference is you can access the state from anywhere.

