using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using StateLab; using StateLab.Services; var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); // One cart for the whole app. Every component that injects CartState gets this same object. builder.Services.AddSingleton(); await builder.Build().RunAsync();