79583300

Date: 2025-04-20 11:30:14
Score: 1
Natty:
Report link

So the issue seemed to be the lack of quotation marks surrounding the interpolated variable within the url() e.g.

style={{backgroundImage: `url('${coverImagePath}')`}}

But the following is invalid

style={{backgroundImage: `url(${coverImagePath})`}}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: N.K.