1

Please forgive me if I am mixing up the terminology here, I'm a bit unfamiliar with it. I wanted to find a way to support extensibility in a web application; I wanted a web application that was similar to Microsoft Azure DevOps, where in the web application out of the box is fully functional, but also extensible in a controlled manner with contribution points.

I have been exploring Angular, React, and Vue.js options as the front end framework for the web application. At first, I was going to try to simulate how Microsoft Azure DevOps handles extensions by using a mix of iframe and XDM (cross domain messaging). This was a bit too complicated, so during my exploration with Angular I came across the concept of Angular Elements.

I found a git repository (https://github.com/manfredsteyer/angular-elements-dashboard) which demonstrates how an external js file could be used to load html into your page dynamically. I then found some blogs and some repositories which demonstrated how to create a single, bundled JS file external to the main site. For example, https://github.com/kito99/micro-frontends-demo.

I combined both of these examples and had my primary Angular application run on http://localhost:4200 and I created an express app to host the external Js files on http://localhost:3000. This worked perfectly.


I have not been able to find anything similar for React or Vue.js, so perhaps I am mixing up the wrong terminology? Is this a possibility in React?

Christophe
  • 74,672
  • 10
  • 115
  • 187
michael
  • 119
  • 1
  • With react you can make your own components and use them multiple places. For examples if you want to make a component which generate html code for a watch you write code once and you can use that components every where in you react app – Mr Zach Feb 10 '20 at 18:04
  • It's a good question, although not stated very clearly. Let us know more about the problem - how many teams are working on extensions, are they customer installable or managed internally? I think a better question would be - what's the best SPA framework to meet my requirements ? – Martin K Feb 11 '20 at 00:28

0 Answers0