Answers for "next js render image"

1

using next js image component

import Image from 'next/image';
export default function Home() {
   return (
       <div>
           <Image
               src='/assets/pexels-kendall-hoopes-6000x4000.jpg'
               alt='universe'
               width={1500}
               height={1000}
           />
       </div>
   )
}
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language