当我点击按钮时,我想转到另一个页面,我尝试了这段代码,但是我得到了这个错误“TypeError:Cannot read properties of undefined (reading‘push’)”我怎样才能解决这个问题?import { useHistory } from 'react-router-dom';
let history = useHist
我使用路由配方,使用户能够查看/重定向之间的页面,这取决于用户是否登录()。当我注销时,它确实会重定向到登录页面,但仍然是空白的,并且我收到了以下错误:
"Uncaught Error: Supplied prop/s "dispatch" are reserved for internal我的Login.js组件使用的是firebaseConnec