Check out example codes for "how to add background image in react css". It will help you in understanding the concepts better.

Code Example 1

import React from 'react';
import car from './images/car.png'
function App() {
  return (
    <div  styles={{ backgroundImage:`url(${car})` }}>      <h1>This is red car</h1>

export default App;

Code Example 2

backgroundImage: `url(${Background})`

Learn ReactJs, React Native from