<aside> ❗ 서버 사이드 렌더링을 위한 React 프레임워크
</aside>
import Link from 'next/Link'
<Link href='/post'>
<a> post로 이동 </a>
</Link>
// [id].jsx 파일 (파일 이름을 대괄호로 감싸야 동적 라우팅이 가능)
import { useRouter } from 'next/router'
const router = useRouter()
console.log(router.pathname) // 해당 사이트 이름
console.log(router.query.id) // pathname 다음에 오는 동적 라우팅의 쿼리를 뽑아낸다.
router.back() // 전 페이지로 돌아가기
router.push('url') // url 주소로 이동하기
router.replace('url') // push 메소드와 동일
// A 컴포넌트
function A(**props**) { .... }
export async function **getStaticProps**() {
const res = await fetch('데이터 경로')
const data = await res.json()
return { **props**: {data} }
}