DEV Community

loading...

Discussion on: Dynamically render icons in Gatsby

Collapse
raae profile image
Benedicte Raae • Edited

I found this Stack Overflow that might be helpful. Not tested any myself, but the solution by Nick looks promising.

<svg>
  <use xlinkHref={'/images/logo.svg#Version-2'}>
  </use>
</svg>
Enter fullscreen mode Exit fullscreen mode
Forem Open with the Forem app