adding an image class inside react inline style code example Example: how to import background image in inline css in react style={{backgroundImage: `url(${pencil})`}}