when to use react dispatch hook code example Example: useSelector const result: any = useSelector(selector: Function, equalityFn?: Function) Copy