By default the render mode for Blazor components is Static, no event support.
By default your Blazor site is a static site. To add interactive support (events), you need to decide if interactions are server or client (WASM)
// server interactive
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
// client interactive
builder.Services.AddRazorComponents()
.AddInteractiveWebAssemblyComponents();
the components still default to render mode Static. You can specify the render mode for each component (ex. @rendermode="InteractiveServer"), or change the default from Static.
// default server interactive
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
// default client interactive
app.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode();