HackerTrans
TopNewTrendsCommentsPastAskShowJobs

pollomarzo

no profile record

comments

pollomarzo
·hace 5 años·discuss
I'm looking for a way to integrate a React app with an existing Vue... thing. Don't really need any communication between the two, just displaying it would be fine. My issue is: the Vue code just throws in <script> tags in the html and expects global variables (location instead of window.location), while the React code uses ES6 imports. The only partly working way I found is including <script> tags with a useEffect, but that doesn't play nicely with apex-charts for some reason, and includes forcing the html with a dangerouslySetInnerHTML after importing the existing file as a long string. Sub par, obviously. In addition, I'll probably need to include different vue apps in a couple different instances. Any suggestions? I think I might just keep them separate and open a new tab for the explanatory session. thanks!

Reasoning: helping with the code behind a paper on explanatory AI systems.

Related code on github if curious https://github.com/pollomarzo/map-generation/tree/main/graph

EDIT: thanks for suggestions will give them a spin throughout tomorrow :)