require in background in inlineStyle react code example
Example 1: Setting a background Image With React Inline Styles
backgroundImage: `url(${Background})`
Example 2: how to import background image in inline css in react
style={{backgroundImage: `url(${pencil})`}}