The only way to update a state inside a store is to dispatch an action and define a reducer function to perform tasks based on the given actions . Once dispatched, the action goes inside the reducer functions which performs the tasks and return the updated state to the store. This is what Redux is all about.