Razor Pages vs server-side Blazor

前端 未结 4 1255
感情败类
感情败类 2021-02-07 20:54

Razor Pages is used for server side web applications, just like in the good old days.

Blazor is aiming to provide an alternative to popular JavaScript frameworks (like

4条回答
  •  温柔的废话
    2021-02-07 21:13

    But what is the difference between Razor Pages and Razor components?

    Blazor has some confusing naming issues.

    Blazor is not Razor but Blazor pages/components are packed in .razor files. Razor uses .cshtml files.

    Blazor components can be used on a Razor page.

    Blazor server side was briefly named "Razor Components" but that was rolled back.

    I am simply trying to figure out which technical differences there are.

    Razor pages are a lightweight MVC branch that generates HTML on the server.

    Blazor is a component framework that can run directly in the Browser (WebAssembly) or run on the server. In both cases it renders small updates to the Browser DOM.

提交回复
热议问题