Code Fellows Reading Notes

436

Dan Abramov Redux Tutorials

dispatch(action): This method is used to dispatch an action to the Redux store. When an action is dispatched, the store will call the appropriate reducer and update its state accordingly.

subscribe(listener): This method is used to subscribe a listener function to changes in the Redux store. Whenever the store’s state changes, the listener function will be called.