diff options
Diffstat (limited to 'src/router')
| -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; |
