This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do you make a Blazor component interactive so that it can handle UI events?
Apply an interactive render mode using the @rendermode directive.
Assign the component a route using the @page directive.
Add an event handler to the component, like @onclick.
Add a code block to the component using @code
What happens to a component immediately after it handles a UI event?
The component is rendered.
The component is disposed.
The component updates all data bindings.
What is data binding used for in Blazor?
To persist the state of a component to a database.
To bind the value of a UI element to a value in code.
To bind request data to a model object.
Which of the following examples isn't a valid Razor directive?
@bind
@code
@page
@currentCount
You must answer all questions before checking your work.
Was this page helpful?