Page 의 모양
page.tsx 는 default React component 를 export 해. Default 가 Server Component 라서 async 가능. Server Component 는 props 거의 안 받아 — framework 가 두 가지 prop 만 주입:
params:[slug]같은 segment 의 route 파라미터.searchParams: URL query string 파라미터.
v15+ 에선 둘 다 Promise
v14 → v15 의 큰 breaking change: params 와 searchParams 가 Promise 야. await 해야 해. Client Component 에선 React.use(params). Promise wrap 이 parallel rendering 풀어줘 — params resolution 기다리지 않고 다른 작업이 시작 가능.
Type helper
Next.js 가 next entry 에 typed helper 게시. PageProps<'/blog/[slug]'> 가 literal route path 기반으로 fully typed params 줘.