react/ASP.NET Core RRS feed

  • Question

  • User887623398 posted


    In react/ASP.NET Core, the template has assumed you have just a page in your application.

    But if I have more than one page in my application how should manage to route?

    I have some experience with the Blazor server-side, on there you can simply manage to route and navigate between pages. 



    Friday, December 11, 2020 3:37 PM

All replies

  • User-474980206 posted

    if you use the template:

       dotnet new react 

    it creates a 3 page sample app. if you look in app.js you will see the route table. the fetch data page even has sample ajax.

    note: the sample uses react-router, but there are other react router libraries available.

    Friday, December 11, 2020 4:02 PM
  • User887623398 posted

    Thanks for the answer.

    Friday, December 11, 2020 4:36 PM