I have a requirement to integrate some React components (external library) into my existing MODX site. The components are fairly basic (for example, specialized <input>
or <button>
elements) with only client-side functionality and no server interactions of any kind. Thus, they can be fully functional by including the correct HTML, JavaScript, and CSS files/functionality.
I’m relatively new to React so might be missing something. I have tried several different approaches but haven’t yet found any good way to add the components onto a page. Any suggestions, existing plugins, etc.?
Thanks in advance.
(FWIW, I have found ways to render the components as HTML and get the relevant CSS, but I’m not sure how to identify and access the needed JavaScript. And this might not be the best approach to start with.)