react-lazy-load-image-component icon indicating copy to clipboard operation
react-lazy-load-image-component copied to clipboard

Use the `next/image`

Open fariborz0015 opened this issue 2 years ago • 3 comments

hello my friend ,

thank you for your great package

my main stack is NextJs developing and i need in improve performance case in my project to use the next js local image tag from "next/image"

is exist any way to pass the this component as a node to lazyLoad component to use this node for load image replace html image tag ?

fariborz0015 avatar Jan 23 '23 10:01 fariborz0015

Next.js has handled very good! you don't need this package

moyongshi avatar Feb 15 '23 07:02 moyongshi

@moyongshi, both projects are dead. Have you tried to set srcSet in Next.js? It's not possible

monolithed avatar Sep 18 '23 10:09 monolithed

@fariborz0015 thanks for your question. We are not very familiar with Next.Js, but have you tried wrapping the next/image component with LazyLoadComponent? You could use the LazyLoadImage implementation as a reference, but changing <img> with the Next.Js image component.

jotacodestudio avatar Oct 16 '23 09:10 jotacodestudio