-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
28 lines (26 loc) · 1.16 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
import './App.css';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import ListBoardComponent from '/.components/ListBoardComponent';
import HeaderComponent from './components/HeaderComponent';
import FooterComponent from './components/FooterComponent';
import CreateBoardComponent from './components/CreateBoardComponent';
import ReadBoardComponent from './components/ReadBoardComponent';
function App() {
return (
<div>
<Router>
<HeaderComponent/>
<div className="container">
<Switch>
<Route path = "/" exact component = {ListBoardComponent}></Route>
<Route path = "/board" component = {ListBoardComponent}></Route>
<Route path = "/create-board/:no" component = {CreateBoardComponent}></Route>
<Route path = "/read-board/:no" component = {ReadBoardComponent}></Route>
</Switch>
</div>
<FooterComponent/>
</Router>
</div>
);
}
export default App;