howto dspatch api use dipatch code example Example: useDispatch() useDispatch({ type: '', playload });