解决方法:打开index.js根文件,将 React.StrictMode组件删掉,就可以解决了。
React.StrictMode是开发中的严格模式,不会影响生产环境,详情可以参考 https://blog.csdn.net/wu_xianqiang/article/details/113521191
react-router-dom5中history.push(),跳转路由地址刷新页面不刷新问题
最新推荐文章于 2023-10-25 14:23:31 发布
解决方法:打开index.js根文件,将 React.StrictMode组件删掉,就可以解决了。
React.StrictMode是开发中的严格模式,不会影响生产环境,详情可以参考 https://blog.csdn.net/wu_xianqiang/article/details/113521191