title: Blazor-Component inherits from BaseClass
body: <p>i am about to create a Base-Class for my Razor-Components.
  This Base-Class looks like:</p>
  <pre><code>public abstract class ExampleBase : ComponentBase 
  {
      public virtual void Submit()
      {
          //DoSomething
      }
  
      public virtual void Back()
      {
          //DoSomething else
      }
  }
  </code></pre>
  <p>my Blazor-Component inherits from this class</p>
  <pre><code>@inherits ExampleBase
  
  &lt;button @onclick=&quot;Submit&quot; /&gt;
  </code></pre>
  <p>So far so good, but when i start my App and this Page is about to Load then i receive an Exception:</p>
  <blockquote>
  <p>[2020-09-29T12:09:03.920Z] Error: System.ArgumentException: The component type must implement Microsoft.AspNetCore.Components.IComponent.
  at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.OpenComponent(Int32 sequence, Type componentType)</p>
  </blockquote>
  <p>what is wrong on being inherited from ComponentBase ?</p>
  <p>Thanks for your help</p>
  <p><strong>Addition:</strong>
  I call my Razor-Component like this and <em>the Exception throws at builder.OpenComponent</em></p>
  <pre><code>RenderFragment CreateFragment() =&gt; builder =&gt;
  {
    builder.OpenComponent(0, typeof(MyRazorComponent));
    builder.CloseComponent();
  }
  </code></pre>
  <p>Hope this helps</p>