Home Forums Development React Rendering Portlets.

Tagged: , ,

Viewing 1 reply thread
  • Author
    Posts
    • #22211
      Max WidmaierMax Widmaier
      Participant

      Hello community,

      I am building a portlet that requires the use of using React (AFL and MDA are too restricting for what we’re trying to build). I am using webpack to package the portlet, but I was/am running into issues, so I decided to just try a Hello World. I basically copy-pasted the code from training and still nothing renders.
      Project structure:

      My Code:

      src/portlets/Hello.js

      src/app/hello.js

      src/ext/…/hello.js

      src/libexport.js

       

      It is really odd as to what’s happening. There are no errors but the portlet just doesn’t render. I don’t know if I’m missing something or what.

      0
      • This topic was modified 1 year, 9 months ago by Max WidmaierMax Widmaier.
    • #22290
      Max WidmaierMax Widmaier
      Participant

      SOLVED!

      I found my solution to this issue! After a lot of digging and experimentation, I found that I need to add a dom.js(x) to my file structure with the same name as my portlet. Specifically, ext/ui/react/hello/dom.js. This I assume handles the actual rendering. That’s why things wouldn’t render.

      0
Viewing 1 reply thread
  • You must be logged in to reply to this topic.