Fork me on GitHub
#reagent
<
2022-03-11
>
Chase16:03:38

how would I recreate this in reagent:

style={{backgroundImage: `url(${imgURL})`,}}
where imgURL is just a string url (that I was creating in a let binding so far.

p-himik16:03:39

{:style {:background-image (str "url(" imgURL ")")}}

Chase16:03:03

Ahh, that makes sense, ty. It is still not showing up but I'll play around with it

👍 1
Chase16:03:20

Ahh, I had a typo of course. It's working. Thanks again!