moofarm / ssuckssuck-frontend

0 stars 2 forks source link

Feat: 페이지 라우팅 구축 #18

Closed ramrami-B closed 7 months ago

ramrami-B commented 7 months ago

📝 작업 내용

<Routes>
      <Route path="/" element={<PageLayout page={<HomePage />} />} />
      <Route path="/login" element={<PageLayout page={<LoginPage />} />} />
      <Route path="/signup" element={<PageLayout page={<SignupPage />} />} />
      <Route path="/mymissions" element={<PageLayout page={<MyMissionPage />} />} />
      <Route path="/missions" element={<PageLayout page={<MissionPage />} />} />
      <Route path="/group" element={<PageLayout page={<GroupPage />} />} />
      <Route path="/mypage" element={<PageLayout page={<MyPage />} />} />
</Routes>

<Link></Link> 로 이동

<Link to="login">로그인 페이지로 이동</Link>

참고: https://reactrouter.com/en/main/router-components/router https://reactrouter.com/en/main/components/link

🔗 연관 이슈

19

✅ 리뷰 요구사항

각 페이지 별 라우팅 구현 했습니다! 확인 후 머지 해주세요 :)