I am new here, so apologies if I am asking trivial question, but could not find answer anywhere. I need to parse my link to display image. Image is in format e.g. p8983.png
So I build this link which is correct, not sure how to render/parse it with ---> see line 8
const targetImage = `public/assets/p${playerData.player.id}.png`;
This don't work - see line 19
<div><img src="{targetImage}"></img></div>
Second issue I have is I do not know how to do math calculations on values pulled from JSON - see lines 17, 18 (all is displayed as a string) e.g.
<div>Passes per minute: {playerData.stats[4].value} + {playerData.stats[8].value} / {playerData.stats[7].value}</div>
Rendering and image and values after math calculations

<img src={targetImage}>? Otherwise you're creating a string that literally is"{targetImage}"(no variable interpolation).