I need to access the public folder /images folder in reactjs. since we have jsx I was able to access that in the following the way
let x= window.location.origin + '/image/myimage.jpg';
However, I need to access the same folder inside app.css
.breadcum-header {
height: 25vh;
background-image: url('../../../public/img/myimage.jpg')
}
I'm getting the following error when I try to do so. is there any alternative way?