mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Noticed this while adding bundle layers to Pages router. The telemetry Webpack plugin is picking up these features but then we're not recording them properly.
17 lines
389 B
JavaScript
17 lines
389 B
JavaScript
import Image from 'next/image'
|
|
import LegacyImage from 'next/legacy/image'
|
|
import profilePic from '../../public/small.jpg'
|
|
|
|
function About() {
|
|
return (
|
|
<>
|
|
<h1>My Homepage</h1>
|
|
<LegacyImage src={profilePic} alt="Picture of the author" />
|
|
<Image src={profilePic} alt="Picture of the author" />
|
|
<p>Welcome to my homepage!</p>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default About
|