I developing a SPA with https://openweathermap.org/, so i display img with
<img src={`http://openweathermap.org/img/w/${data.weather[0].icon}.png`}/>
Instead of this, i want to display another image from my local folder.I have created utils folder with index.js and another folder named weatherIcon with icons in .svg index.js i have
export const getWeatherIcon = (icon) => (
/weatherIcon/${icon}.png)
in component i change
but nothnig display in app.
Question is: How display local image instead Api image