Menu

Rendering the Pages in App

Rendering the Pages in App

Finally, everything comes together in App.jsx, which acts as the root of the application.

Since this build doesn't yet use client-side routing between the two experiences, App.jsx simply renders the page you're currently working with — JobSeekerPage or EmployerAdminPage — directly:

File Path: JobPortalApp\src\App.jsx

import { BrowserRouter, Routes, Route } from 'react-router-dom'


import './App.css'
import JobSeekerPage from './pages/JobSeekerPage'
import EmployerAdminPage from './pages/EmployerAdminPage'




function App() {
  return (
    <>
      <BrowserRouter>
        <Routes>
          <Route path="/" element={<JobSeekerPage />} />
          <Route path="/admin" element={<EmployerAdminPage />} />
        </Routes>
      </BrowserRouter>
    </>
  )
}


export default App