blob: cf4c024534a0dc6235b2c776578e79f9831f5f7c (
plain) (
blame)
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
34
35
36
37
|
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import ProjectRoutes from './ProjectRoutes';
import Home from '../pages/Home';
// import Contact from '../pages/Contact';
import About from '../pages/About';
import Work from '../pages/Work';
import Skills from '../pages/Skills';
export default class Routes extends Component {
render() {
return(
<Router>
<Switch>
<Route exact path="/">
<Home />
</Route>
{ /* <Route exact path="/contact">
<Contact />
</Route> */ }
<Route exact path="/about">
<About />
</Route>
<Route exact path="/projects">
<Work />
</Route>
<Route exact path="/skills">
<Skills />
</Route>
<ProjectRoutes />
</Switch>
</Router>
)
}
}
|