I've made a new subpage for my app and when I try rendering components specifically witout router it all works. But when I add router so I am able to switch between pages by it just displays blank page. Not even my other components.
Here is a code of my App.jsx:
import React from "react";
import Home from "./Home";
import Markets from "./Markets";
import { Navbar, Footer, Services, Transactions } from "./components";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
const App = () => {
return (
<Router>
<div className="min-h-screen">
<div className="gradient-bg-welcome">
<Navbar />
<Switch>
<Route path="/" component={<Home />} />
<Route path="/Markets" component={<Markets />} />
</Switch>
</div>
<Services />
<Transactions />
<Footer />
</div>
</Router>
);
};
export default App;