forked from peraltot/Project-3-Speech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
28 lines (22 loc) · 806 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
// define import paths
import Navbar from "./src/components/Navbar";
import Home from "./src/components/pages/Home";
import About from "./src/components/pages/About";
import AllStories from "./src/components/pages/AllStories";
import LogOut from "./src/components/LogOut";
const App = () =>
<Router>
<div>
<Navbar />
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/watson" component={Home} />
<Route exact path="/about" component={About} />
<Route exact path="/allstories" component={AllStories} />
<Route exact path="/logOut" component={LogOut} />
</Switch>
</div>
</Router>;
export default App;