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

Is Ceres theme Apply on Exisitng React js Project


Is the Ceres theme applicable to existing React JS projects? If yes, then how will I apply for my project?


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,

Sorry for the late reply.

Unfortunately, at the moment Ceres doesn't have a React version out of the box.

You can apply Ceres theme to your existing React project, by following the steps below:

  1. Including the mandatory theme files globally:
    CSS files:

    /assets/plugins/global/plugins.bundle.css
    /assets/css/style.bundle.css


    Javascript files:

    /assets/plugins/global/plugins.bundle.js
    /assets/js/scripts.bundle.js
  2. In our HTML version, our components are initialized within the load event. However, in SPA versions, content is rendered differently, and to use our JavaScript components, you'll need to move the initialization from the load event to the useEffect hook.

    All components in HTML version are initialized in js/components/_init.js, you can move this initialization into useEffect as shown below:

    useEffect(() => {
    KTComponents.init();
    });
  3. Copy HTML markup from our HTML version to your React components.



By following the steps above you will have a basic theme core. Keep in mind that separate pages might require additional Javascript and CSS files to be loaded.

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