title: Can I use require('img.jpg') to load img file on local server within background-image style property?
body: <p>Can I use require('img.jpg') to load img file on local server within background-image style property?</p>
  
  <p>To load img files in a react app on a local server I use 
  <code>&lt;img src=     {require('./greenLine.jpg')}</code> /> 
  after installing <code>url-loader</code> and <code>file-loader</code>. </p>
  
  <p>This works great, but I want to use the img file in a style object, like - <code>const divBkground = { backgroundImage: require('url(./greenLine.jpg)')</code>}</p>
  
  <p>This doesn't work. Can someone advise?</p>
  
  <p>THANKS..</p>