I am deploying a react application , when i run the serve -s build command , my project loads but as i put it in apache server , i am only able to see the background color and nothing else . There is no error on the console and i can see the API's getting called in the network tab but still no component loads . I dont understand , if there is any issue in my react router . THIS IS HOW I HAVE DONE ROUTING
<Router basename="/KDS">
<Switch>
<Route exact path="/" component={Login} />
{localStorage.getItem("isLoggedIn") ? (
<>
<Route exact path="/AllOrders" component={AllOrders} />
<Route exact path="/Waiting" component={Waiting} />
<Route exact path="/Preparing" component={Preparing} />
<Route exact path="/Ready" component={Ready} />
<Route exact path="/Delivered" component={Delivered} />
<Route exact path="/Cancelled" component={Cancelled} />
</>
) : null}
<Redirect to="/" />
</Switch>
</Router>