Answer the question
In order to leave comments, you need to log in
The image is not connected in react in css, what should I do?
Changed: if I comment out this line, then I run it and include background in the code, then some kind of fig works, why
css код
background: url(./img/slider.jpg);
Answer the question
In order to leave comments, you need to log in
1. Change the "img" folder to . "images" and source = /slider.jpg
If it doesn't help
2. Apply inlan styles to the element {process.env.PUBLIC_URL + '/slider.jpg'}
3. Place the photo in the images folder in src and import import slider from './ images/slider.jpg' and inline {slider}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question