File App.jsx
import React from "react";
import Master from "./Master";
import Appone from "./appone";
import { Routes, Route, BrowserRouter as Router } from "reactrouter-dom";
const App = () => {
return (
<Router>
<Routes>
<Route path="/" component={<Master />} exact ></Route>
<Route path="/days" component={<Appone />}></Route>
</Routes>
</Router>);};
export default App;
if anyone wants to see the complete code it is in here
Basically, I am trying to make a two page react app so I am using routes and route tag that you can see in the codesandox but I am getting the error as
"Matched leaf route at location "/" does not have an element. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.
in Routes (created by App)
in App"