how to use dispatch in react hooks code example Example: useDispatch() useDispatch({ type: '', playload });