summaryrefslogtreecommitdiff
path: root/src/router/index.js
diff options
context:
space:
mode:
authorKamran Ahmed <kamranahmed.se@gmail.com>2018-08-19 14:23:27 +0400
committerKamran Ahmed <kamranahmed.se@gmail.com>2018-08-19 14:23:27 +0400
commit5c7e6dd54e90708e1be7ef540b06ad08e3d82ace (patch)
treee1df36af400e1c7e6e4fc47f0f55d268956a602a /src/router/index.js
parentUpdate favicon and add home (diff)
downloadgithunt-5c7e6dd54e90708e1be7ef540b06ad08e3d82ace.tar.gz
Restructure and add router
Diffstat (limited to 'src/router/index.js')
-rw-r--r--src/router/index.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/router/index.js b/src/router/index.js
new file mode 100644
index 0000000..8bc4254
--- /dev/null
+++ b/src/router/index.js
@@ -0,0 +1,19 @@
+import React from 'react';
+import { BrowserRouter, Route, Switch } from 'react-router-dom';
+
+import FeedContainer from '../containers/FeedContainer';
+import OptionsContainer from '../containers/OptionsContainer';
+
+const AppRoutes = () => {
+ return (
+ <BrowserRouter>
+ <Switch>
+ <Route exact path='/' component={ FeedContainer }/>
+ <Route exact path='/options' component={ OptionsContainer }/>
+ <Route component={ FeedContainer }/>
+ </Switch>
+ </BrowserRouter>
+ );
+};
+
+export default AppRoutes;