so basically the problem is i have some components like header or footer that are same in all pages,
and the way i addressed the image src
on the route below is like this
<Route exact path="/" component={HomePage} >
</Route>
<img src="./SVG/icon.svg" alt="go-logo"></img>
It works fine on that route and the routes that are not nested but whenever my route changes to something like this
<Route exact path="/city/NY" component={City} >
</Route>
I should change the image address to below in order to make it work fine
<img src="../SVG/icon.svg" alt="go-logo"></img>
And i know i can implant that header inside every component and use props to make the addresses right, But i was wondering if there is a better way to do this?