Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Purpose of Layout.cshtml in Blazor server app

$
0
0

Coming from an ASP.NET MVC background, I cannot understand the purpose of Layout.cshtml in a Blazor app. There is also a MainLayout.razor. I know one is a view (.cshtml) and another is a component (.razor).

But if razor components can't be used within views, I don't understand the point of the layout.

For what purpose should I use Layout.cshtml and Mainlayout.razor?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>