Made use of this higher order function:
-
Reducer- Inside of the reducer stay my state recalculation logic
-
Connect- Which is a higher order function in Redux that allow my component to connect to the redux store.
-
mapStateToProps- is a regular javascript function that take state as a parameter and return the state object or whatever to be used as props in my component to display data from the redux store.
-
mapDispatchToProps- is a regular javascript that take possibly to arguments or parameter such as ##dispatch and ##ownProps of that component where i want to use the mapDispatchToProps.
Take a view to the project, check out the Test the application here.