To render a static image in Next JS.
- Always store images in the folder called
public
under the src directory. - To render an image if image name was
img.png
.Then it will be available like this.
<img src={`img.png`} alt="Person Avatar" />
Thats it.
For more info
Original Source
Top comments (0)