The following delegate approach uses the preceding ReferenceChild component. So, if the request is an HTTP GET request, then the name of the handler will be OnGetMyOnClick. For example, IsFixed="@true" is uncommon but supported. For more information, see ASP.NET Core Blazor performance best practices. EventCallback is weakly typed and allows passing any type argument in InvokeAsync(Object). The assigning component provides the content between the child component's opening and closing tags. How Can I Connect my code from Program.cs to My Razor Page Button? When @attributes are splatted on the element, the attributes are processed from right to left (last to first). For a group of parameter types that Blazor explicitly checks, Blazor rerenders a child component if it detects that any of the parameters have changed. Use of @key guarantees the preservation of elements or components based on the key's value. We have totally removed those p. The preceding component loads in the browser at /hello-world regardless of whether or not you add the component to the app's UI navigation. In JavaScript, define a function for building the custom event argument object from the source event: Register the custom event with the preceding handler in wwwroot/index.html (Blazor WebAssembly) or Pages/_Host.cshtml (Blazor Server) immediately after the Blazor