会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Larissa
博客园
首页
新随笔
联系
订阅
管理
2021年12月27日
Error: A <Route> is only ever to be used as the child of <Routes> element, never rendereddirectly.Please wrap your <Route> in a <Routes>.
摘要: React路由版本问题,查看package.json文件,查看react-router-dom的版本,如果是 6 版本,会出现此问题。 在 React-Router v6版本中,Route更改了使用方式。 import React from "react" import Home from "./p
阅读全文
posted @ 2021-12-27 17:05 larissa404
阅读(816)
评论(0)
推荐(0)
公告