What does usedispatch() do in redux code example
Example 1: useDispatch()
useDispatch({ type: '', playload });
Example 2: useSelector
const result: any = useSelector(selector: Function, equalityFn?: Function)
Copied
useDispatch({ type: '', playload });
const result: any = useSelector(selector: Function, equalityFn?: Function)
Copied