use background state as inline css reactjs code example Example: Setting a background Image With React Inline Styles backgroundImage: `url(${Background})`