공식 문서 : https://nextjs.org/docs/app/api-reference/components/image

github : https://github.com/vercel/next.js/blob/canary/packages/next/src/client/image-component.tsx

<aside> 💡

참고하면 좋은 지점

기본 사용법

import Image from 'next/image'

// 기본
<Image src="/photo.jpg" width={500} height={500} alt="설명" />

// fill 방식
<div style={{ position: 'relative', height: '300px' }}>
  <Image src="/photo.jpg" fill style={{ objectFit: 'cover' }} alt="설명" />
</div>

비율/크기 처리 방식

로딩 처리

에러 처리