understanding useDispatch in javascript code example Example: useDispatch() useDispatch({ type: '', playload });