summaryrefslogtreecommitdiff
path: root/src/router/index.js
diff options
context:
space:
mode:
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;