summaryrefslogtreecommitdiff
path: root/src/popup/js/App.tsx
blob: 26fdafce0363c65f2c9924cb47c564df973f2a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import * as React from "react";
import { HashRouter } from "react-router-dom";
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 (
            <HashRouter>
                <div>
                    <h1 className="header">KPJS</h1>

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