reduc with function component code example Example: useDispatch() useDispatch({ type: '', playload });