@messageText
@code { private string messageText; private void ShowMessage(MouseEventArgs e) { messageText = $"Blaze a new trail with Blazor! ({e.ScreenX}, {e.ScreenY})"; } } ``` When the button is selected in the `ChildComponent`: * The `ParentComponent`'s `ShowMessage` method is called. `messageText` is updated and displayed in the `ParentComponent`. * A call to [`StateHasChanged`](xref:blazor/components/lifecycle#state-changes) isn't required in the callback's method (`ShowMessage`).