Check out example codes for "blazor button onclick parameter". It will help you in understanding the concepts better.

Code Example 1

@for (int i = 0; i < 10; i++)
{
    var buttonNumber = i;
    <button @onclick="@(e => test(buttonNumber, 5 * buttonNumber))">Check</button>
}

Learn ReactJs, React Native from akashmittal.com