react alternative to connect code example Example: useDispatch() useDispatch({ type: '', playload });