Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🛠️ 변경사항
api 호출 방식 변경 axios → fetch
import 된 라이브러리 설치
useNavigate → useRouter
react-router-dom의 URL 파라미터 → Next.js dynamic routing
참고자료 : https://opentutorials.org/course/5098/32350
react-router-dom 방식
Next.js dynamic routing 방식(nickname이 URL 파라미터)
폴더구조
app/(search)/search-user/[nickname]/page.tsx
useParams(react-router-dom) → Next.js dynamic routing
react-router-dom의 useParams 방식
Next.js의 dynamic rounting 방식
img태그 → 'next/image’의 Image 태그로 변경
☝️ 유의사항
👀 참고자료
❗체크리스트