using mapstate to props in react hooks code example Example: useDispatch() useDispatch({ type: '', playload });