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

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

代码示例2
import React from "react";
    import "./App.css";
    import NavBar from "./components/navbar.js";
    import Footer from "./components/footer.js";
    import Home from "./components/pages/homepage/home.js";
    import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
    
    function App() {
      return (
        
          
); } export default App;