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

john john 1,021 Reputation points
2021-07-17T16:14:22.933+00:00

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?

Thanks

Developer technologies | ASP.NET | ASP.NET Core
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Barker 801 Reputation points
    2021-07-17T17:02:25.547+00:00

    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.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.