misc_pterodactyl-panel/resources/scripts/components/App.tsx
2019-06-09 19:26:20 -07:00

19 lines
537 B
TypeScript

import * as React from 'react';
import { hot } from 'react-hot-loader/root';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import AuthenticationRouter from '@/routers/AuthenticationRouter';
class App extends React.PureComponent {
render () {
return (
<Router>
<div>
<Route exact path="/"/>
<Route path="/auth" component={AuthenticationRouter}/>
</div>
</Router>
);
}
}
export default hot(App);