title: How to pass a parameter to razor component in server-side Blazor?
body: <p>How can I pass parameter into razor component?</p>
  
  <p>So far I tried</p>
  
  <pre><code>@(await Html.RenderComponentAsync&lt;Rateplan&gt;(RenderMode.ServerPrerendered, new { id= 100}))
  </code></pre>
  
  <p>But I receive an error</p>
  
  <blockquote>
    <p>InvalidOperationException: Prerendering server components with
    parameters is not supported.</p>
  </blockquote>
  
  <p>I try the same thing with RenderMode.ServerPrerendered but I receive an error </p>
  
  <blockquote>
    <p>InvalidOperationException: Server components with parameters are not
    supported.</p>
  </blockquote>
  
  <p>I also tried doing</p>
  
  <pre><code>&lt;Rateplan Id="100"&gt;&lt;/Rateplan&gt;
  </code></pre>
  
  <p>but that didnt even start the component.</p>