I have a index file where I have
<BrowserRouter>
  <Routes>
    <Route path="/" element={Home}
    <Route path="/home/student/info" element={Info} />
    <Route path="/home/student/about" element={about} />
    <Route path="/home/teacher/score" element={score} />
    <Route path="/home/teacher/attendence" element={attendence} />
  </Routes>
</BrowserRouter>
Here, I have this common path for "/home/student/". So How can I use a react sub path for this, rather than writing separate lines? I'm using react-router 6.
 
     
    