Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Metronic V8 React Roadmap missing in the documentation


I can't find the roadmap or the route logic in the react documentation, which makes it very difficult for the development to modify.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi Sherf,

At the moment, we do not have a separate route logic doc page I will add a task for such documentation to our system and we will consider adding it in the subsequent releases.

Here are some tips for you on our route logic:

We are handling routing in our theme using react-router, we have two main router files in src/routing folder:

  1. AppRoutes.tsx - Routes entry point.
  2. PrivateRoutes.tsx - Private routes entry point. (Pages are unavailable for unauthorized users).



Then for each pages module, we have a wrapper, for example, the profile module has file src/app/modules/profile/ProfilePage.tsx which contains all profile route definitions.

Then this file is imported and used inside PrivateRoutes.tsx.


const ProfilePage = lazy(() => import("../modules/profile/ProfilePage"))

<Route
path="crafted/pages/profile/*"
element={
<SuspensedView>
<ProfilePage />
</SuspensedView>
}
/>


Also, you can check our guide on how to add a custom page: https://preview.keenthemes.com/metronic8/react/docs/docs/create-a-page

Regards,
Lauris Stepanovs,
Keenthemes Support Team
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(