2 min read

Redux-Store

A store is a state container which holds the application’s state.Redux can have only a single store in your application. Whenever a store is created in Redux, you need to specify the reducer.
Redux-Store

A store is an immutable object tree in Redux. A store is a state container which holds the application’s state. Redux can have only a single store in your application. Whenever a store is created in Redux, you need to specify the reducer.

A reducer is a function that returns the next state of app. A preloadedState is an optional argument and is the initial state of your app. An enhancer is also an optional argument. It will help you enhance store with third-party capabilities.

A store has three important methods as given below −

getState: It helps you retrieve the current state of your Redux store.

dispatch: It allows you to dispatch an action to change a state in your application.

subscribe: It helps you register a callback that Redux store will call when an action has been dispatched. As soon as the Redux state has been updated, the view will re-render automatically.

https://miro.medium.com/max/1512/1*50Yfcs8KuvROJvaiq9AGJQ.png
Redux - Store - Tutorialspoint
Redux - Store - A store is an immutable object tree in Redux. A store is a state container which holds the application’s state. Redux can have only a single store in your
https://www.tutorialspoint.com/redux/redux_store.htm#:~:text=A%20store%20is%20an%20immutable,need%20to%20specify%20the%20reducer.

#Redux #Store #State #Reducers #Actions #Probyto #ProbytoAI

Subscribe & Follow us for latest in field of AI & Tech and stay updated!
Facebook: https://facebook.com/probyto
Twitter: https://twitter.com/probyto
LinkedIn: https://linkedin.com/company/probyto
Instagram: https://instagram.com/probyto