📌  相关文章
📜  'Switch' 不是从'react-router-dom' 导出的. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:54.688000             🧑  作者: Mango

代码示例2
react-router-dom v6 example: //NO SWITCH IN V6

import React from 'react'
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'

import '../styles/global.css'

import Layout from '../containers/Layout'
import Home from '../pages/Home'
import Login from '../containers/Login'
import RecoveryPassword from '../containers/RecoveryPassword'
import NotFound from '../pages/NotFound'

const App = () => {
  return (
    
      
        
          }/>
          }/>
          }/>
          }/>
        
      
    
  );
}

export default App;