Blazor: Set a Default Base Class for Razor Components with _ViewStart.razor
Blazor apps can define a custom base class for all Razor components by configuring it in a _ViewStart.razor file. This avoids adding @inherits to every component and allows shared logic such as cancellation tokens, logging, or state management to be centralized.