body{ cursor: url("https://images.cnblogs.com/cnblogs_com/szqblog/1889956/o_201130135019Cursor.png"), auto; }

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

报错: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的写法。

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

先做两个路由界面

 

再做一个布局

 

在APP

 

posted @ 2021-11-11 02:39  1234前来报到  阅读(1021)  评论(0编辑  收藏  举报