React Please wrap your in a

报错:A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.

那是老版本的写法,报错是要用V6的写法。

------------------下面是我的记录,可以不用看-----------

先做两个路由界面

React Please wrap your <Route> in a <Routes>

 

再做一个布局

React Please wrap your <Route> in a <Routes>

 

在APP

React Please wrap your <Route> in a <Routes>

 

上一篇:Initialization failed for 'https:start.spring.io' Please check URL, network and proxy sett


下一篇:IMAX入局VR内容,打造更棒的观影效果