calling dispatch in functional component returns nothing code example
Example: redux connect
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)