In this article, we’ll create a simple react application where we’ll use redux for state management. The final look of this application is shown below —
In this exercise, we’ll use combineReducers()
of the redux
library which combines multiple reducers into a single reducer.
According to the official documentation, As our application grows and becomes more complex, we can have multiple reducers each managing independent parts of the state. The combineReducers()
helper function turns an object whose values are different reducing functions into a single reducing function that we can pass to createStore()
.
#web-development #redux #reactjs #javascript #react