Recent Posts
Recent Comments
Archives
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- error
- git
- array정적메서드
- 모던자바스크립트
- 코딩테스트
- nextjs
- Next
- js
- 코테
- CORS
- 오블완
- 자주 까먹는
- vercel
- 셋팅
- 코드카타
- 티스토리챌린지
- deep dive
- 프로젝트 셋팅
- TailwindCSS
- 초기셋팅
- 스파르타코딩클럽
- 모던 자바스크립트
- auth
- 프로그래머스
- supabase
- React
- 내일배움캠프
- useRouter
- domain
- 최적화
- Today
- Total
목록params (1)
도록
[nextJs/react] 매번 헷갈리는 파라미터 가져오기
Next Client Component = React const { name } = useParams(); Next Server componenttype PageProps = { params: { slug: string } searchParams: { [key: string]: string | string[] | undefined }};export default function Page({ params, searchParams } : PageProps ) { return My Page} Next app router 1. GETimport { type NextRequest } from 'next/server' export function GET(request: NextRequest) { ..
React
2024. 9. 5. 18:46