An HTML <img>
element was used to display an image. For better performance and automatic Image Optimization, use Next.js' built-in image component instead.
Import and use the <Image />
component:
import Image from 'next/image'
function Home() {
return (
<>
<Image
src="https://example.com/test"
alt="Landscape picture"
width={500}
height={500}
/>
</>
)
}
export default Home