![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
Liszter
找到自己喜欢的东西很重要
展开
-
react-router (V6) js跳转写法
最新版本的react-router (v6),js路由跳转原创 2022-02-18 15:00:46 · 5645 阅读 · 0 评论 -
react-router-dom 6
报错 : A <Route> is only ever to be used as the child of <Routes>新版本写法改了:之前版本的 `Route` 需要被 `Routes` 包裹 , 之前的 `component` 变成了 `element={<Home />}`import React from "react";import './index.css'import { Link, Route, Routes...原创 2022-01-27 15:06:32 · 806 阅读 · 0 评论