aboutsummaryrefslogtreecommitdiff
path: root/src/routes.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-04 20:54:04 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-04 20:54:04 +0100
commit32e465cd02b7e420ac63b5bd6dcb2caa5cdf3740 (patch)
tree65fc2299b315def57e0f306a979774acb6fb8c5d /src/routes.tsx
parent247a5bd0f8f4ce77bc5d02ccb1a315b254b23e8f (diff)
home page en routing
Diffstat (limited to 'src/routes.tsx')
-rw-r--r--src/routes.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/routes.tsx b/src/routes.tsx
new file mode 100644
index 0000000..af129c7
--- /dev/null
+++ b/src/routes.tsx
@@ -0,0 +1,15 @@
+import { Switch, Route } from 'react-router-dom';
+import './css/nomargin.css';
+
+import home from './pages/home';
+
+function Router() {
+ return (
+ <Switch>
+ <Route exact path='/' component={home}/>
+ </Switch>
+ );
+}
+
+export default Router;
+