Would be best if there was a demo URL we could see. I use img-loader to handle images, so try taking a look at that to get your images to work with your CSS. When you run the npm start command, React will show a "Failed to Compile" error and stop the build when the image is not found: React failed to compile. the image worked perfectly. I tried adding the JS from @jpeter but that didn't work.. There are four ways to set a backgroundImage style property using React's inline CSS. You might not want to use in some cases, since the implementation is basic. Global properties can be added as static or instance variables. It is now read-only. Let's get googling I run it and when I use edit css (web developer) in firefox 15, this tempate is working normally. I'm wondering which action I've missed. The parameter is an absolute URL, a relative URL, or a data URI. Found inside – Page 278Master essential cutting-edge tools, such as create-react-app, Jest, and Flow Adam Boduch. tests, writing 43, 50 unit test coverage, reporting 64 JSBin URL 114 ... loader plugins Babel 29 CSS 29 Images 29 low-severity bugs installing 67 ... Option 1: import the image into the component. I have an image that I set as background-image using at the path src/assets/icons/icon.png. I use sass module too and this is definitely not working. Tip: The background of an element is the total size of the element, including padding and border (but not the margin). 1. The issue was definitely with my relative path I was using- I switched to. It seems like they’re an extra level in the directories that contains all of the App-test stuff. Powered by Discourse, best viewed with JavaScript enabled, https://css-tricks.com/quick-reminder-about-file-paths/. Trying different paths, but I am a bit confused in regards of the "react-app" part at the end of the url you've shown. By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally. Found inside – Page 234... initial-scale=1, shrink-to-fit=no"> React App:/title>