drawDB/src/App.js

20 lines
422 B
JavaScript
Raw Normal View History

2023-09-19 20:47:04 +08:00
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
2023-09-19 20:46:59 +08:00
import Editor from "./pages/editor";
2023-09-19 20:47:04 +08:00
import LandingPage from "./pages/landing_page";
2023-09-19 20:46:33 +08:00
function App() {
return (
2023-09-19 20:46:46 +08:00
<>
2023-09-19 20:47:04 +08:00
<Router>
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/editor" element={<Editor name="Untitled" />} />
</Routes>
</Router>
2023-09-19 20:46:46 +08:00
</>
2023-09-19 20:46:33 +08:00
);
}
export default App;