Skip to content

Commit 75aa472

Browse files
committed
LogiinPage를 만들고 페이지 제목을 구현합니다
1 parent cdc5158 commit 75aa472

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66

77
import HomePage from './HomePage';
88
import AboutPage from './AboutPage';
9+
import LoginPage from './LoginPage';
910
import RestaurantsPage from './RestaurantsPage';
1011
import RestaurantPage from './RestaurantPage';
1112
import NotFoundPage from './NotFoundPage';
@@ -21,6 +22,7 @@ export default function App() {
2122
<Switch>
2223
<Route exact path="/" component={HomePage} />
2324
<Route path="/about" component={AboutPage} />
25+
<Route path="/login" component={LoginPage} />
2426
<Route exact path="/restaurants" component={RestaurantsPage} />
2527
<Route path="/restaurants/:id" component={RestaurantPage} />
2628
<Route component={NotFoundPage} />

src/LoginPage.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function LoginPage() {
2+
return (
3+
<div>
4+
<h2>Login</h2>
5+
</div>
6+
);
7+
}

0 commit comments

Comments
 (0)