๊ธฐ๋ณธ ์ฌ์ฉ๋ฒ router์์ navigate๋ก ์ด๋์ state์ ๊ฐ์ฒด ํํ๋ก ๊ฐ์ ๋๊ฒจ์ ์ฃผ๊ณ ๋ฐ์ ์ ์๋ค. ๋ํ parameter ๋ฐฉ์๊ณผ๋ ๋ฌ๋ฆฌ ๋ฐ๋ก router url ๋ค์ ๊ฐ์ ์ค์ ํด์ฃผ์ง ์์๋ ๋๊ณ , url์ ๋๊ธฐ๋ ๊ฐ์ด ๋ ธ์ถ ๋์ง ์์์ ์ข์๋ค. // ๋ณด๋ผ๋ navigate(URL, {state: {id: "user1"}}) // ๋ฐ์๋ import {useLocation} from "react-router"; const location = useLocation(); const id = location.state ? location.state.id : null; //