The problem I have is I can not figure out how to get the value of the selected Cell within my Script Section. StateHasChanged is covered in more detail later in ASP.NET Core Razor component lifecycle and ASP.NET Core Razor component rendering. The following ParameterParent component renders two ParameterChild components: The following rendered HTML markup from the ParameterParent component shows ParameterChild component default values when the ParameterParent component doesn't supply component parameter values. The server has a subroutine describing what to do when the event is raised; it is called the event-handler. The first thing we need to is to create a NewComment . Otherwise, the framework assumes that a string literal is set. EventCallback is strongly typed and requires passing a T argument in InvokeAsync(T) that's assignable to TValue. Top Rated; . . The property receiving the RenderFragment content must be named ChildContent by convention. The performance cost isn't large, but only specify @key if preserving the element or component benefits the app. Generally, don't call the following methods in components. Consider the following example of a parent component that consumes a child component: The AttributeOrderChild1 component's extra attribute is set to the right of @attributes. How to rename a file based on a directory name? How Can I Connect my code from Program.cs to My Razor Page Button? For unchecked parameter types, Blazor rerenders the child component, Assigns the component parameter value to a. ComponentBase in dotnet/aspnetcore reference source: The reference source contains additional remarks on the built-in lifecycle events. It is better to use a submit button. Component parameters pass data to components and are defined using public C# properties on the component class with the [Parameter] attribute. 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