1 import { render, Component } from 'inferno';
2 import { HashRouter, Route, Switch } from 'inferno-router';
4 import { Navbar } from './components/navbar';
5 import { Home } from './components/home';
6 import { Login } from './components/login';
10 import { WebSocketService } from './services';
12 const container = document.getElementById('app');
14 class Index extends Component<any, any> {
16 constructor(props, context) {
17 super(props, context);
18 WebSocketService.Instance;
25 <div class="mt-3 p-0">
27 <Route exact path="/" component={Home} />
28 <Route path={`/login`} component={Login} />
30 <Route path={`/search/:type_/:q/:page`} component={Search} />
31 <Route path={`/submit`} component={Submit} />
32 <Route path={`/user/:id`} component={Login} />
33 <Route path={`/community/:id`} component={Login} />
42 render(<Index />, container);