So I have two apps, one is a legacy app which was built using react 15.3 and another app which is being built using react 16.7. The newer app is built to accommodate a feature request which was not originally available to the legacy app. Both apps run smoothly on their own but when merged is just pure chaos. The goal is for both apps is to communicate even at a minimal level (e.g. passing parameters, props, variables, etc).
Things that I tried:
- I built the newer app and then added another div in the HTML file so that both apps would run on the same page but they would not have interaction. (Works but doesn't meet the goal)
- I built a minified js file of the newer app then imported it in the older app as a component. (Does not work)
- I salvaged components from the newer app then copied them over to the older app. (Does not work)
My futile attempts would lead me to the conclusion that either of the two apps needs to be upgraded/downgraded. I am leaning towards the upgrade of the legacy app because of the dependencies of the newer app and other stuff(e.g. es6). It would be great if someone could point me in the right direction.