summaryrefslogtreecommitdiff
path: root/src/popup/js/App.tsx
blob: cc9d6c322c3c2a18cdd548932e9646def30448e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as React from "react";
import { Switch, Route } from "react-router-dom";

import { Index } from "./pages/Index";
import { Users } from "./pages/Users";

export class App extends React.Component<any, any> {
    render() {
        return (
            <div>
                <h1 className="header text-center">KSJS</h1>

                <Switch>
                    <Route exact path="/" component={Index} />
                    <Route path="/users" component={Users} />
                </Switch>
            </div>
        );
    }
}