Blazor vs Razor Pages
Developers should learn Blazor when building web applications where they want to leverage existing meets developers should learn razor pages when building traditional server-rendered web applications in asp. Here's our take.
Blazor
Developers should learn Blazor when building web applications where they want to leverage existing
Blazor
Nice PickDevelopers should learn Blazor when building web applications where they want to leverage existing
Pros
- +NET skills, share code between client and server, or avoid JavaScript for UI logic
- +Related to: c-sharp, asp-net-core
Cons
- -Specific tradeoffs depend on your use case
Razor Pages
Developers should learn Razor Pages when building traditional server-rendered web applications in ASP
Pros
- +NET Core, especially for scenarios like content management systems, internal business tools, or simple CRUD applications where a page-centric architecture is natural
- +Related to: asp-net-core, c-sharp
Cons
- -Specific tradeoffs depend on your use case
The Verdict
Use Blazor if: You want net skills, share code between client and server, or avoid javascript for ui logic and can live with specific tradeoffs depend on your use case.
Use Razor Pages if: You prioritize net core, especially for scenarios like content management systems, internal business tools, or simple crud applications where a page-centric architecture is natural over what Blazor offers.
Developers should learn Blazor when building web applications where they want to leverage existing
Disagree with our pick? nice@nicepick.dev