How to add a @ref to Blazor components inside a loop?
@for (int i = 0; i < 10; i++){<MyComponent @ref="???"/> // I want to add this component to the list}@code{ List<MyComponent> components = new List<MyComponent>();}
How to add a @ref to Blazor components inside a loop?
@for (int i = 0; i < 10; i++){<MyComponent @ref="???"/> // I want to add this component to the list}@code{ List<MyComponent> components = new List<MyComponent>();}