I have the URL of an image I'd like to set as background of a div, but I don't know how to do that.
I'm using a @wire method to retrieve name, description and this URL from an obj in Salesforce, so it's saved on a JS variable.
How do I refer that variable in my css?
I tried using inline css like:
<div style={headerURL}></div>
where headerURL is:
get headerURL() {
return this.obj.headerImageURL;
}
but it gives me an error in VScode and also it's not working.
Any idea of how to solve this?