using connect with react hooks code example Example: useDispatch() useDispatch({ type: '', playload });