import yourImage from '/image-path/image.png' <div className="bg"></div> <style> .bg { background-image: url(yourImage.src); } </style>