Open markospacetech opened 2 years ago
So I got this to work in the Divi builder with he help of links from this issue https://github.com/elegantthemes/create-divi-extension/issues/506 , however I am having trouble figuring out how to render this component on the specific html element defined in the modules PHP render function (frontend).
Problem Description
Trying to create a Divi module that contains React-three-fiber canvas to host a 3D scene. However I am not sure if this is possible wit Divi.
Steps To Reproduce
Following the how to create a module post. My Modules' jsx and php currently look like this.
JSX
PHP
(removed the get_fields function as input is not needed)
After trying this I can see the tags in the html, but nothing is rendering. This is my first time trying to combine React with wordpress/php so I think I'm lacking some fundamental understanding. Any advice or help here is much appreciated.
Cheers
Screenshot and/or gif