title: Add @ref to a Blazor component in a loop
body: <p>How to add a <code>@ref</code> to Blazor components inside a loop?</p>
  
  <pre><code>@for (int i = 0; i &lt; 10; i++)
  {
      &lt;MyComponent @ref="???"/&gt; // I want to add this component to the list
  }
  
  @code
  {
      List&lt;MyComponent&gt; components = new List&lt;MyComponent&gt;();
  }
  </code></pre>