dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.37k stars 9.99k forks source link

ASP.NET core hybrid solution for SPA or PWA apps #44331

Closed mojtabakaviani closed 2 years ago

mojtabakaviani commented 2 years ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

I develop asp.net and asp.net core web sites for long times, asp.net is very good for backend but not have solution for new technology such as SPA or PWA for frontend developing and need use Reactjs, Vuejs and others JavaScript frameworks for client side. but these frameworks have some limitation and not integrated with asp.net. for example, just can user asp.net for backend and JavaScript frameworks for frontend or cannot use Razor rendering or server side rendering is slow.

Describe the solution you'd like

I like asp.net core have hybrid solution for SPA or PWA apps not need JavaScript frameworks but have such this solution for client side and can use Razor for SSG and SSR rending and asp.net core instead of node.js for rendering performance.

Additional context

Mybe your suggestion that user Blazor or reactjs.net but l think if have JavaScript micro framework better reception with developers and no need use Reactjs, Vuejs frameworks for many scenarios

javiercn commented 2 years ago

@mojtabakaviani thanks for contacting us.

Our solution for SPA and PWAs is Blazor. You can use Blazor Server which does all the rendering server-side. We also have this issue https://github.com/dotnet/aspnetcore/issues/38114 which would enable static site generation if that's what you are looking for.

We do not plan to create any micro-JS framework or similar solution as we believe those scenarios are covered by adding Blazor Server components to the existing MVC app.

mojtabakaviani commented 2 years ago

@javiercn thanks for reply.

I think just see count of developed frontend with popular javascript frameworks vs Blazor, Asp.net core have potential to more favorites if have own javascript solution for SPA and PWAs, because is more usable for full stack developers.

javiercn commented 2 years ago

@mojtabakaviani I am not sure I am following through, but I would say that most people use an existing framework like React/Angular/Vue. We already have integration with Angular and React in ASP.NET Core out of the box and we've shown how to integrate other frameworks like Vue or Svelte with ASP.NET Core in a similar way.

At this point we do not plan to offer further integration in this area.

ghost commented 2 years ago

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.