Check out example codes for "background image syntax in css if it is in folder". It will help you in understanding the concepts better.

Code Example 1

body {
  background: radial-gradient(circle, black, white);

Code Example 2

/* The first method using an image on your server */
background: url('img/someimage.jpg');

/* The second method using an image hosted on another server */
background: url('');

/* A third method that allows the site to determine protocol instead of explicitly defining it */
background: url('//');

Learn ReactJs, React Native from