Is there any equivalent of HTML.RAW in Blazor?

To render raw HTML in Blazor, wrap the HTML content using the MarkupString type. This allows the HTML or SVG to be rendered as part of the DOM. Refer to the Blazor documentation for more information.

How do you manually trigger data or UI changes?

By default, Blazor detects changes and reflects them in the UI automatically. However, there might be a situation where we have to manually trigger changes. StateHasChanged informs the component that its state has changed, but it does not render the component. The component will decide when to render itself. You can’t do that in a synchronous method, so you should async your code to give the component a chance to render.

How do you bind and handle events?

You can bind events to DOM elements started with the on<event> with a delegate-type value. The attribute’s name always starts with “on.” In the following code example, the “UpdateHeading” event is triggered when the button is clicked. Refer to this Blazor documentation for more information.