Component is the main building block of Blazor WebAssembly. In this series, you will learn how to use component efficiency. This tutorial includes:
In this tutorial, you will have an overview of component:
A component in Blazor WebAssembly is called Razor Component. Component is the main building block of Blazor WebAssembly. The following is an example of a website page to demonstrate the role of a component.

A website page is created by the combination of many components. Each component in charge of a piece of logic and UI in a page. Components are reusable.
Razor Component (.razor) is not Razor Page (.cshtml). Blazor WebAssembly does not use Razor Page as component. Do not confuse between them.
Each component has 3 sections:

There are 4 component types:
@page directive. This type of component allows you to have parameter from the URL, mainly for integrate between components. This type must not be used in another component.@page directive. This type of component allows you to solve a very specific problem and must be used within another component.LayoutComponentBase. This type of component determines the layout of a page or entire website.