diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-19 14:23:27 +0400 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-19 14:23:27 +0400 |
| commit | 5c7e6dd54e90708e1be7ef540b06ad08e3d82ace (patch) | |
| tree | e1df36af400e1c7e6e4fc47f0f55d268956a602a /src/router/index.js | |
| parent | Update favicon and add home (diff) | |
| download | githunt-5c7e6dd54e90708e1be7ef540b06ad08e3d82ace.tar.gz | |
Restructure and add router
Diffstat (limited to 'src/router/index.js')
| -rw-r--r-- | src/router/index.js | 19 |
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; |
