๐Ÿœ Mine ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ํ”„๋กœ์ ํŠธ - ํ™ˆ ํ™”๋ฉด

Darleneยท2021๋…„ 7์›” 26์ผ
0

Mine ํ”„๋กœ์ ํŠธ

๋ชฉ๋ก ๋ณด๊ธฐ
4/12

์ด๋ฒˆ ํ”„๋กœ์ ํŠธ์—์„œ๋Š” React Router๋ฅผ ์‚ฌ์šฉํ•˜์˜€์Šต๋‹ˆ๋‹ค.

๋ฆฌ์•กํŠธ ๋ผ์šฐํ„ฐ ์„ค์น˜

npm install react-router-dom

์ฐธ๊ณ  ์‚ฌ์ดํŠธ : https://reactrouter.com/web/guides/quick-start

import {
  Link,
} from 'react-router-dom';

export default function HomePage() {
  return (
    <>
      <Link to="/budget">
        ํ•œ ๋‹ฌ ์˜ˆ์‚ฐ์„ ์„ธ์›Œ๋ณผ๊นŒ์š”?
      </Link>
      <Link to="/calendar">
        ์ž์‚ฐ ๊ด€๋ฆฌ ์‹œ์ž‘ํ•ด๋ณผ๊นŒ์š”?
      </Link>
    </>
  );
}

0๊ฐœ์˜ ๋Œ“๊ธ€