I am trying to update my store in redux via useDispatch method, but I am getting a message like that:
Attempted import error: 'useDispatch' is not exported from 'react-redux'.
I am using this method for call the action to update my store.
import { useDispatch } from 'react-redux';
import { loggedInAction } from './redux';
const userInfo = () => {
const dispatch = useDispatch();
const loggedIn = user => dispatch(loggedInAction(user));
7.0.3
– Maciej Kitowski