Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $9
Get for 99$

Example React Project for Version 9


I noticed there is React support in version 9.0. According to the docs it involves creating a vite react app and copying and renaming folders from the download package. I followed the steps but it's not working. Can you provide an example zip file or repo of a working react example for 9.0


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 (5)


Same problem as him



Hi,

Please see the instructions below to get working example:

  1. Open the repo at https://github.com/KeenthemesHub/metronic-tailwind-html-integration.
  2. Download the metronic-tailwind-react folder.
  3. Copy the src folder from the metronic-tailwind-html package and paste it into the metronic-tailwind-react/src directory.
  4. Rename the copied folder to theme. The directory structure should now look like this: metronic-tailwind-react/src/theme.
  5. Copy the media folder from metronic-tailwind-html/dist/assets and paste it into metronic-tailwind-react/public.
  6. Install dependencies with npm install and serve the project with npm run dev.


Please let us know if you need any help on this topic or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team

Thanks for the prompt reply. I tried that and still getting some typescript and tailwind errors.

KTLayout.init(); // KTLayout is missing init()

tailwind.config.js //ESLint: 'require' is not defined.(no-undef)

demo1.js //ESLint: 'KTMenu' is not defined.(no-undef), KTToggle, etc



Same problem for me. I followed the above steps but gets this error:

PS C:\...\metronic-tailwind-html-integration-main\metronic-tailwind-react> npm run build

> metronic-react-tailwind@0.0.0 build
> tsc -b && vite build

src/App.tsx:12:14 - error TS2339: Property 'init' does not exist on type 'typeof import("C:/.../metronic-tailwind-html-integration-main/metronic-tailwind-react/src/theme/app/layouts/demo1")'.

12 KTLayout.init();
~~~~
Found 1 error.



HI,

To fix this error in file src/theme/app/layouts/demo1.js you should change


KTDom.ready(() => {
KTLayout.init();
});


to


export default KTLayout;


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  :(