摘要: useNavigate() may be used only in the context of a <Router> component. //useNavigate()只能在<Router>组件的上下文中使用。 解决办法,将使用useNavigate或useHistory的组件和方法封装成一个新 阅读全文
posted @ 2022-06-14 09:22 SimoonJia 阅读(2185) 评论(0) 推荐(0) 编辑
摘要: import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; 使用 <Routers>包裹 来替代之前版本的<switch>且Route必须被包裹在Routes中 <Route path="/pd3" compo 阅读全文
posted @ 2022-06-14 09:01 SimoonJia 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 找括号(括号匹配) Bracket Pair Colorizer ctrl+, 配置启用括号连线着色 自动生成注释插件 koroFileHeader ⭐⭐⭐一个插件迅速提升代码质量JavaScript Booster (js代码优化) 例如把if-else提示用三元运算符代替 多项目如何管理 Pro 阅读全文
posted @ 2022-06-14 06:56 SimoonJia 阅读(144) 评论(0) 推荐(0) 编辑