沒有 Switch 了


react-router-dom V6 沒有 Switch 了

import Switch 要改成 Routes

<Route path='/signin' element={<Signin />} ></Route>

previous:

<Switch>
    <Route path="/signin" exact>
      <Signin />
    </Route>
</Switch>







你可能感興趣的文章

Sequlize & Express. P2

Sequlize & Express. P2

JavaScript: Execution Context & Closure

JavaScript: Execution Context & Closure

3D Deep Learning 入門(二)- Deep learning on point cloud

3D Deep Learning 入門(二)- Deep learning on point cloud






留言討論