title: Getting events from component rendered with RenderComponentAsync
body: <p>At the moment i am building a ASP.NET app with blazor woven in. I can render my blazor components with the <code>Html.RenderComponentAsync&lt;MyComponent&gt;()</code> function included.</p>
  
  <p>The problem is, is that i want to be able to get event from this components so i can react to them outside of the component itself.</p>
  
  <p>Usually in blazor you would add this to your child component code section like this,</p>
  
  <pre><code>    [Parameter] public Action&lt;string&gt; addPressed {get; set;}
  </code></pre>
  
  <p>and then handle it in the parent component like so</p>
  
  <pre><code>&lt;MyComponent addPressed="DoSomethingOnPressed"/&gt;
  </code></pre>
  
  <p>How would i got about that when my component was instead instantiated through RenderComponentAsync like this</p>
  
  <pre><code>@(await Html.RenderComponentAsync&lt;MyComponent&gt;())
  </code></pre>
  
  <p>Thanks in advance</p>