Blazor generic component
To create generic Blazor components, you can use the @typeparam directive. In the example below, I first use a component that doesn’t have a code-behind file. Then I show what you need to do when you have a code-behind file. …