Check out example codes for "backgrond image shopify css". It will help you in understanding the concepts better.

Code Example 1

body {
    background: url({{ 'some-image.jpg' | asset_url }});
}

Learn ReactJs, React Native from akashmittal.com