title: EditForm requires either a Model parameter, or an EditContext parameter
body: <p>How does one resolve this Blazor Server error?</p>
  <blockquote>
  <p>EditForm requires either a Model parameter, or an EditContext
  parameter</p>
  </blockquote>
  <p>I have created a minimally reproducible example below. The issue seems to be because the model is not instantiated...Why does the following simple page throw this error?</p>
  <pre><code>@page &quot;/&quot;
  &lt;EditForm @Model=&quot;@person&quot;&gt;
      &lt;input @bind=&quot;@person.FirstName&quot; /&gt;
      &lt;input @bind=&quot;@person.LastName&quot; /&gt;
  &lt;/EditForm&gt;
  @code 
  {
      public Person person = new Person();
      protected override Task OnInitializedAsync()
      {
          person = new Person
          {
              FirstName = &quot;Fred&quot;,
              LastName = &quot;Flintstone&quot;
          };
          return base.OnInitializedAsync();
      }
  }
  </code></pre>