In my app.js file, I have 20 pages listed in the import statements, such as
import NewCars from './New/Cars';
import NewTrucks from './New/Trucks';
import CreateNewSevice from './Service/NewService';
import CreateUsedService from './Service/UsedService';
and so on in my Route switch I have
<Switch>
<Route path='/New/Cars' component={NewCars} />
<Route path='/New/Trucks' component={NewTrucks} />
<Route path='/Service/NewService' component={NewService} />
<Route path='/Service/UsedService' component={UsedService} />
</Switch>
the issue I'm having is that when I try to link to the UsedService component, it keeps taking me to the NewService Component On a link on my service page I have the following:
<Link to='./UsedService'>Schedule Service Appointment</Link>
however, it shows the NewService Component, even if I type http://localhost/Service/UsedService, it renders the new service component. The NewService even appears as my home page when I run the app from VS code with npm start. What could be causing this? This is the only component with this issue. I even tried changing the name of the UseService to see if it was a naming convention thing but no luck, still loaded the NewService