Routing
Page and URL routing
Berry routing system is based on react-router and its package react-router-dom, it also uses code splitting for better performance.
Configure route
Open ...\src\routes\index.jsx You will find the example code below. In the code below, we have shown four different routes. <MainRoutes/> This is the main layout routing you see after login.
...
...
// ===============|| ROUTING RENDER ||=================== //
export default function ThemeRoutes() {
    return useRoutes([
        { path: '/', element: <PagesLanding /> }, 
        AuthenticationRoutes, 
        LoginRoutes, 
        MainRoutes]);
}...
...
// ===============|| ROUTING RENDER ||=================== //
export default function ThemeRoutes() {
    return useRoutes([
        { path: '/', element: <PagesLanding /> }, 
        AuthenticationRoutes, 
        LoginRoutes, 
        MainRoutes]);
}Last updated
Was this helpful?