Adding React.Js to my MVC core , is this possible/compatible?

john john 831 Reputation points

I am building ASP.NET Core MVC web application, and I am using these technologies:-

  1. Entity Framework
  2. SQL Server
  3. HTML, JavaScript, JQuery & Bootstrap.

But i want to improve my web application front-end by utilizing React.JS.. But my question is if this i possible? and if so how i can do so?


A set of technologies in the .NET Framework for building web applications and XML web services.
3,578 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Barker 801 Reputation points

    Most of the react documentation and tools are geared for creating an SPA. You can build a MPA (multi page app) with react but you will need to create a custom webpack or use typescript to build the project (typescript has native support of jsx files).

    You might find vue.js a better option for building MPAs.

    Note: I have created MPA apps with react, but use the SPA template for new apps. One of the benefits of using react is all the UI code is in the react project, you are not using server for some html and JavaScript for other.

    2 people found this answer helpful.