Installation

  1. Install NuGet package BlazorSchool.Components.Web.
  2. In the Program.cs file of your Blazor app, add the following code to configure Blazor Library services:
builder.Services.AddBlazorComponents();
  1. In your App.razor file, use the <BlazorLibrary> component as the root component:
<BlazorLibrary>
    <Router AppAssembly="@typeof(App).Assembly">
        ...
    </Router>
</BlazorLibrary>
An error has occurred. This application may no longer respond until reloaded. Reload 🗙