App.tsx 355 Bytes
import React, { FC } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import PageLayout from './layouts/PageLayout';
import Login from './pages/Login';

const App:FC = () => (
  <Router>
    <Route>
      <Route path="/login" extra component={Login} />
      <PageLayout />
    </Route>
  </Router>
);

export default App;