-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
29 lines (27 loc) · 993 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
28
29
import React, { Component } from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom'
import Navbar from './components/layout/Navbar';
import Dashboard from './components/dashboard/Dashboard';
import ProjectDetails from './components/projects/ProjectDetails';
import SignIn from './components/auth/SignIn';
import SignUp from './components/auth/SignUp';
import CreateProject from './components/projects/CreateProject';
class App extends Component {
render() {
return (
<BrowserRouter>
<div className="App">
<Navbar />
<Switch>
<Route exact path='/' component={ Dashboard } />
<Route path='/project/:id' component={ ProjectDetails } />
<Route path='/signin' component={ SignIn } />
<Route path='/signup' component={ SignUp } />
<Route path='/create' component={ CreateProject } />
</Switch>
</div>
</BrowserRouter>
);
}
}
export default App;