-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (21 loc) · 666 Bytes
/
App.js
File metadata and controls
25 lines (21 loc) · 666 Bytes
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
import React, { Component } from 'react'
import {Route} from 'react-router-dom'
import ProtectedRoute from './common/ProtectedRoute'
import AdminPage from './routes/Admin'
import AuthPage from './routes/Auth'
import PeoplePage from './routes/PeoplePage'
class App extends Component {
static propTypes = {
};
render() {
return (
<div>
<h1>Hello world</h1>
<ProtectedRoute path = '/admin' component = {AdminPage}/>
<Route path = '/auth' component = {AuthPage}/>
<Route path = '/people' component = {PeoplePage}/>
</div>
)
}
}
export default App