mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR shows a better error message when using legacy props on new `next/image` (introduced in Next.js 13) and makes the codemod more discoverable.
16 lines
286 B
JavaScript
16 lines
286 B
JavaScript
import React from 'react'
|
|
import Image from 'next/image'
|
|
|
|
import testTall from './tall.png'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<h1 id="page-header">Static Image</h1>
|
|
<Image id="basic-static" src={testTall} placeholder="blur" />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|