How to "plug-in" a javascript repository into an asp.net razor project?

Viewed 25

The question might not be clear, let me explain better below:

I have an ASP.NET project, which has a homepage. I want to have a plugin code which does something like brings a pop out window. This pop-out window itself is a whole javascript project, in react. But the homepage is in ASP.NET. (Both living in 2 different repositories )

I want to be able to use the react project within the Homepage.

Firstly, is this doable? if so how to plugin the react repository inside the asp.net project repo?

Another example for clearer understanding of the question:

We have the google page, if there were a pop out window there like "contact customer care" which they probably would want to plugin to other web pages as well, now the ""contact customer care" pop out would be the react project but the google page would be the asp.net project.

What I have thought of:

a. Can iframes be used within ASP.NET? if so how? b. Micro Front ends would have been a good option but I don't own the homepage so, that probably isn't the way?

0 Answers
Related