title: How to set a full background image in CSS using reactjs style?
body: <p>Here I have one div This div image I want to set on whole background but it not set full background(see below screenshot). My project is using reactjs. How to set Image in whole background ?</p>
  
  <p><a href="https://i.stack.imgur.com/7fXy1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7fXy1.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;div
     style={{
        backgroundImage: `url(${defaultImages.backgroundOfImage})`,
        backgroundRepeat: 'no-repeat',
        backgroundPosition: 'cover',
     }}
    &gt;
  &lt;/div&gt;
  </code></pre>