I have a prop being injected in my component called headerImage. I know it's there because when I place it in the HTML of the component like so:
<h1>Hello, {headerImage}</h1>
It renders correctl URI of the image in the above snippet.
However when I place it in my div background style, it won't render for whatever reason:
<div
className="hide-on-mobile center-image"
style={{
backgroundImage: `url({headerImage})`,
backgroundSize: "cover",
backgroundRepeat: "no-repeat",
backgroundPosition: "right",
width: "100%",
height: "auto",
}}
></div>
I see it in the developer tools not being properly evaluated:
What am I doing wrong here?
