@_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/lifecycle#state-changes) isn't required in the callback's method (`ShowMessage`). `StateHasChanged` is called automatically to rerender the `ParentComponent`, just as child events trigger component rerendering in event handlers that execute within the child. `EventCallback` and `EventCallback