DEV Community

Discussion on: React won't load images...

Collapse
 
fjones profile image
FJones • Edited

You've got your braces in the wrong place. The JSX syntax is <Component prop={<expression>} ... />, so in your case <img src={Github} ... />. Alternatively, you can use template strings:

<img src=`${Github}` ... />

, though I would still recommend having the block braces around the expression in general:

<img src={`${Github}`} ... />

You might also want to use the #help Tag in the future, that highlights your post a bit. :)

Collapse
 
joshwen7947 profile image
Josh Wenner

yeah this works now! Thank you!