user10358804
user10358804

Reputation: 89

How to call React js from Layout.cshtml (Combine React Routing and ASP.NET MVC Routing)

I have an application that is written in ASP.NET MVC core so the View is in cshtml. The routing is the usual asp.net mvc routing. I have a new module that is written using React JS. How do integrate the routing of react js and ASP.NET MVC since one located in js file and the other one is in server code?

Upvotes: 0

Views: 805

Answers (1)

Kunal Burangi
Kunal Burangi

Reputation: 882

You can simply try hitting the API controller and take any response like 200 and then simply redirect to the react js url.

Upvotes: 1

Related Questions