❔ The name "onclick" does not exist in the current context

I have
@using Microsoft.AspNetCore.Components.Web

at the top and
<button class="btn btn-secondary" @onclick="e => HandleSubmit(e)">Sign Up</button>

below.
2023-01-20_13_50_18-BookGroup_-_Microsoft_Visual_Studio.png
Was this page helpful?