Jak przejść ścieżkę obrazu do IMG SRC w ReactJS

// if you using webpack 
src={require(`${comment.user.image.webp}`).default}
// if not make the images folder inside public folder inside the assets folder
src={`${process.env.PUBLIC_URL}/assets/${comment.user.image.png}`}
Beautiful Boar