Open DevelopSoo opened 1 month ago
react-router-dom에서는 useParams를 이용하여 url에 있는 id를 가져올 수 있습니다. 아래 예시는 불필요해보입니다. https://github.com/mini-chip/Ledress/blob/42b753f495a4a04d3d098ef313c5626fc3cda16d/src/page/ProductDetail.jsx#L7 https://github.com/mini-chip/Ledress/blob/42b753f495a4a04d3d098ef313c5626fc3cda16d/src/page/ProductDetail.jsx#L9-L10
react-router-dom의 dynamic route 에 대해 알아봅시다. https://github.com/mini-chip/Ledress/blob/42b753f495a4a04d3d098ef313c5626fc3cda16d/src/App.jsx#L14
react-router-dom에서는 useParams를 이용하여 url에 있는 id를 가져올 수 있습니다. 아래 예시는 불필요해보입니다. https://github.com/mini-chip/Ledress/blob/42b753f495a4a04d3d098ef313c5626fc3cda16d/src/page/ProductDetail.jsx#L7 https://github.com/mini-chip/Ledress/blob/42b753f495a4a04d3d098ef313c5626fc3cda16d/src/page/ProductDetail.jsx#L9-L10
react-router-dom의 dynamic route 에 대해 알아봅시다. https://github.com/mini-chip/Ledress/blob/42b753f495a4a04d3d098ef313c5626fc3cda16d/src/App.jsx#L14