What is the use of the StateHasChanged method?

Platform: Blazor|Category: General

The StateHasChanged is a method in ComponentBase that notifies state changes to a component. When called, it rerenders the component.For more information, check this link.