1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-10 17:12:48 +00:00

convert to typescript - react-router upgrade to 4

This commit is contained in:
2017-03-29 17:09:32 -05:00
committed by Mitchell Gerber
parent eba08b8bc2
commit 0f7a775039
19 changed files with 1145 additions and 1245 deletions

34
app/Wrapper.tsx Normal file
View File

@@ -0,0 +1,34 @@
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Navbar from './components/Navbar/Navbar';
import Home from './pages/Home/Home';
import NotFound from './pages/NotFound/NotFound';
//styling
import './scss/index.scss';
interface Props {
}
interface State {
}
export default class Wrapper extends React.Component<Props, State> {
render() {
return (
<BrowserRouter>
<div>
<Navbar/>
<Switch>
<Route exact path="/" component={Home}/>
<Route component={NotFound}/>
</Switch>
</div>
</BrowserRouter>
);
}
}