Next.js · Junior · Question 18 of 75

What does the <Image> component from next/image give you?

Explanation

next/image generates srcset, serves modern formats (WebP/AVIF), lazy-loads by default and reserves space thanks to width/height (or fill), preventing layout shifts. For the LCP image, use preload (formerly priority).

Further reading

Problem with a question

Next.js · Junior · question 18

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz