1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-12 01:52:49 +00:00
Files
classic-wow-forums/client/app/Wrapper.tsx

35 lines
751 B
TypeScript

import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { Footer, Header } from './components';
import { Home, Realms } from './pages';
// styling
import './scss/index.scss';
interface Props {}
interface State {}
export default class Wrapper extends React.Component<Props, State> {
constructor(props: Props) {
super(props);
}
public render() {
return (
<BrowserRouter>
<div>
<Header />
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/realms" component={Realms} />
{/* <Route component={NotFound} /> */}
</Switch>
<Footer />
</div>
</BrowserRouter>
);
}
}