Hi, I’m attempting to render a React component in a web-panel module of a plugin for Jira Service Desk Server. Webpack processes the React source and places the transpiled bundle in /src/main/java/resources/client/container.pack.js
The issue we’re having is that the js code attempts to render the React element before the DOM element exists. We’ve tried addEventListener(“load”, callback) but this seems to detect when the main page is loaded rather than the plugin as getElementById returns null at this point. A static timeout of 1s works but is ugly. Is there a preferred solution for this issue?
Thanks in advance for any help