I seem to be facing an issue with loading SVG's within my React/Ionic App. I am getting the weather via OpenWeatherMap and accessing which icon to use via this weather?.weather[0].icon I am using the following icon pack https://github.com/basmilius/weather-icons but when I insert the above it does not render the SVG icons I am using it like
<img src={`../images/${weather?.weather[0].icon}.svg`}/> but it keeps showing it like the image is missing.
The images are in the images directory which has the same root directory as this page
Page is in src/pages
Image is in src/images
Anyone have any tips on why this may be?
A sample SVG from the pack is:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g><circle cx="32" cy="32" r="11.64" fill="#f4a71d"/><path fill="none" stroke="#f4a71d" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" d="M32 15.71V9.5M32 54.5v-6.21M43.52 20.48l4.39-4.39M16.09 47.91l4.39-4.39M20.48 20.48l-4.39-4.39M47.91 47.91l-4.39-4.39M15.71 32H9.5M54.5 32h-6.21"/><animateTransform attributeName="transform" dur="45s" from="0 32 32" repeatCount="indefinite" to="360 32 32" type="rotate"/></g></svg>