What is the difference between Blazor and Razor?

  • Razor is a templating engine that combines C# with HTML to build dynamic web content.
  • Blazor is a component-based, single-page app framework for building client-side web apps using .NET that works well with all modern browsers via WebAssembly for client-side Blazor. Server-side Blazor ASP.NET Core app runs on server and makes use of SignalR connection to communicate with the client (browser). It works with all modern browsers. In other words, Blazor is a hosting model for Razor components.
Thanks & Best Regards! Javi Zhu 朱佳辉 Mobile: 15900467108 Email: Javi.zhu@outlook.com
原文地址:https://www.cnblogs.com/Javi/p/14680007.html