App.tsx 469 Bytes
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";

import EditorPage from "pages/Editor";
import LoginPage from "pages/Login";

import "./App.css";

function App() {
  return (
    <div className="App">
      <Router>
        <Switch>
          <Route path="/editor" component={EditorPage} />
          <Route path="/" component={LoginPage} />
        </Switch>
      </Router>
    </div>
  );
}

export default App;