Building Blazor components
With ASP.NET Core 8, Blazor introduced a new project template to start a project that supports the most flexible hosting model and all rendering modes. It provides a basic template to run, and a Weather
component, which shows a table with five rows of random temperatures that uses streaming rendering.
Reviewing the new Blazor project template
First, we will create a Blazor Web App project and review its important parts:
- Use your preferred code editor to create a new project and solution, using the Blazor Web App project template, as defined in the following list:
- Project template: Blazor Web App /
blazor --interactivity None
- Project file and folder:
Northwind.Blazor
- Solution file and folder:
Chapter15
- Authentication type: None
- Configure for HTTPS: Selected
- Interactive render mode: None
- Interactivity location: Per page/component
- Include sample pages: Selected...
- Project template: Blazor Web App /