I have shown the practical example of redux store by using counter component, actions, CounterReducer and creating the store.
It has action type which has add as action.
mapStateToProps(state) is a function used to map redux store state to component.
Connect function will connect react component class to redux store state.
npm install redux
npm install react-redux
The above commands are mandatory to add the redux packages.
#reactjs #redux #react