mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
The Image component's existing `priority` prop is confusing since its not obvious what it does. In order to improve clarity, we are introducing a `preload` prop and deprecating the `priority` prop. We also updated the dev warning to no longer suggest using this prop for the LCP and instead use `loading="eager"`.
14 lines
217 B
JavaScript
14 lines
217 B
JavaScript
import React from 'react'
|
|
import Image from 'next/image'
|
|
import img from '../public/test.jpg'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<Image id="responsive" src={img} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|