Code QuizIntermediate

next/image component for automatic image optimization

Learn why next/image needs explicit dimensions to optimize images without layout shift.

Codejavascript
import Image from 'next/image';

export default function Avatar() {
  return (
    <Image
      src="/profile.png"
      alt="User profile"
    />
  );
}

What is the bug in this code?