I am doing this to pass input to a function:
<div class="input-group">
<input class="form-control" @onchange="() => Setup(key)" />
</div>
@code
{
string key;
private async Task Setup(string key){
...
}
}
I don't need to keep key after I pass it to the function. Is there a way I can do this without declaring it as a global variable?
Setup(key)
? – StriplingWarrior