This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
How do you respond to a click event?
Use @click="handler".
Use onclick="handler".
Use @onclick="handler"
In what component method would you place logic that would initialize your component?
In the OnInitialized method
In the constructor
In the OnStart method
How can a component handle a specific route?
Add a @route directive at the top of the component
Add a @page directive at the top of the component, for example @page "/my-component"
Inject the RouteManager class and register the route and its handler
RouteManager
You must answer all questions before checking your work.
Was this page helpful?