I am trying to integrate with React (create-react-app)

2 replies · opened Feb 21, 2020

FfurtivepygmyFeb 21, 2020

I have set up the environment correctly with all the css, js, etc folders in my public folder and with all the script tags and link tags added in the index.html file.

In the React side, I am able to render texts and headings pulled out from one of the demos. However, elements like headers and footers appear as full white even though I am able to hover over the links underneath. So the source code is there and running but all the DOM elements are plain white.

Please find my index.html attached. The React application renders under the div with the id of root, and I am confident that this is working as I can render styled text with Canvas classes through the React app. However, things that require js render but appear as plain white.

There must be an issue with the jQuery files or the JS files. Please assist.

Thanks.

FfurtivepygmyFeb 21, 2020

Apparently I cannot upload the html file. So here it is.


  
    
    
- 

    
- 
    
- 
    
- 
    
- 
    
- 
    
- 
    
- 
    
- 

    
- 
    

    
    
    
- 
    
    
- 
    
    Seychelles Golf Club
  
  
    You need to enable JavaScript to run this app.
    
     tag.

      To begin the development, run `npm start` or `yarn start`.
      To create a production bundle, use `npm run build` or `yarn build`.
    -->

    
    

    
    

    
    

    
    
    

    
    
  
SSemicolon WebSTAFFFeb 24, 2020

Hello,

Canvas is not readily compatible with React and is nowhere mentioned or indicated about this in the Item Descriptions. Unfortunately, since this is not an Out-of-the-Box functionality of Canvas, any further customization or feature/functionality enhancements is your responsibility as we currently do not provide Customization related Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy .

Additionally, the Blank Page Issue is an indication that something is wrong with your Integrations resulting to a jQuery Conflict which is causing this error. Simply disable the Page Loading Transition, by finding and deleting or commenting the following code in the js/functions.js File:


SEMICOLON.initialize.pageTransition();

and add the following CSS Code:


body:not(.no-transition) #wrapper { opacity: 1; }

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard