Blazor uses the Razor template engine that generates HTML and serves to the web browsers. We can mix HTML and C# syntax in the Razor templates and Razor engine then compiles the Razor templates to generate the HTML.
Blazor (version 0.6.0) supports the templated component. It is a component that accepts one or more UI templates as parameters and these parameters can be used for component rendering. It allows us to write high-level reusable components. Using templated components, we can write a generic and more reusable component.
We can create the templated component by using one or more component parameters of type RenderFragment or RenderFragment<T>. The RenderFragment is a part of UI which is rendered by the component. It may have parameters that are used during the rendering of the component or while the RenderFragment is invoked.
Posted Date:- 2022-02-24 09:14:20
What is the component in Blazor?
What is Blazor WebAssembly (WASM)?
Can I debug Blazor WebAssembly?
Can I use both Blazor WebAssembly to build full-stack apps?
When should I use Blazor Server vs Blazor WebAssembly?
How to deploy a Blazor app in IIS?
How to deploy the Blazor app in Azure?
What are templated components in Blazor?
When should I use Blazor WASM?
When should I use Blazor Server?
What are the life cycle methods of Blazor Components.
What is the Event-Binding in Blazor?
How to do Two-way Data Binding in Blazor?
How to define a route in Blazor?
What are the steps to create and run the Blazor WebAssembly App using CLI commands?
What are the steps to create and run the Blazor Server App using CLI commands?
What are the Pros and Cons of Blazor WebAssembly?
What are the Pros and Cons of Blazor Server?
What is the component in Blazor?
What are the Features of Blazor?