Creating the NewTask Component

Learn how to add and use components in Blazor WebAssembly.

We need to add a NewTask component. We do this as follows:

  1. Return to Visual Studio.
  2. Right-click the Shared folder and select the “Add, Razor Component” option from the menu.
  3. Name the new component NewTask.
  4. Click the “Add” button.
  5. Remove the h3 element.
  6. Add the following markup:

Get hands-on with 1400+ tech skills courses.