Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • 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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(