setting background image of <main> in react code example Example: how to import background image in inline css in react Click to copystyle={{backgroundImage: `url(${pencil})`}}