📜  如何使用“react-router-dom”的元素 - Javascript 代码示例

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

代码示例1
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;