Last updated
Last updated
Berry routing system is based on and its package it's also using code splitting for better performance.
How can I add a new page with a menu item?
You can use the below explanation to add/remove menu routes and their menu items.
Open...\src\routes\index.js
You will find the below example code. In the below code we have shown four different routes. <MainRoutes/>
is the main layout routing you see after login.
To add one more menu item in
<MainRoutes />
, update the following file at the same location ...\src\routes\MainRoutes.js
Any route added in <MainLayout>
will automatically go through<AuthGuard>
Page and URL routing