-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (31 loc) · 1.13 KB
/
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
30
31
32
33
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 PostDetails from './Components/projects/postdetails'
import CreatePost from './Components/projects/createpost'
import SignIn from './Components/auth/signin'
import SignUp from './Components/auth/signup'
import Todo from './Components/todo/todomain'
import World from './Components/game/world'
class App extends Component {
render() {
return (
<BrowserRouter>
<div className="App">
<Navbar />
<Switch>
<Route exact path='/' component={Dashboard} />
<Route path='/project/:id' component={PostDetails} />
<Route path='/signin' component={SignIn} />
<Route path='/signup' component={SignUp} />
<Route path='/create' component={CreatePost}/>
<Route path='/todo' component={Todo}/>
<Route path='/game' component={World}/>
</Switch>
</div>
</BrowserRouter>
);
}
}
export default App;