Answer the question
In order to leave comments, you need to log in
How to run React page from ASP.NET project?
Let's say there is an ASP.NET project with the following content:
How can I run a React page through IIS?
Answer the question
In order to leave comments, you need to log in
You already have UseStaticFiles, so that should work.
"page on react" is launched in the browser, so the server only needs to distribute files.
https://docs.microsoft.com/en-us/aspnet/core/funda...
Why JsEngineSwitcher and AddReact xs. You can just distribute statics on the IIS side without straining the backend (or you can live without IIS at all - why pay a lot of money for an nginx Windows license)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question