📌  相关文章
📜  在“react-router-dom”中找不到开关 - Javascript 代码示例

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

代码示例1
//TEMPLATE TO USE 
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";

//------------------------------------------------IMPORTS VIEWS-----------------------------------------------
import Home from "./views/Home.js";
//------------------------------------------------CLASS APP-----------------------------------------------
class App extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      
        
          } />
        
      
    );
  }
}

export default App;