A powerful feature in Blazor is to create reusable components. With a reusable component you can use functionality of said component elsewhere in your application without duplicating code. But why stop there? In this video we will also learn how to pack up a component in a NuGet package and use it in a completely different project! Crazy!

🔗 Links
Sample Code Repo: https://github.com/jfversluis/BestForYouRecipes

Blazor: https://blazor.net
Blazor Docs: https://blazor.net/docs

⏱ Timestamps
00:00 - Intro
00:19 - Preview End Result
00:50 - Outline Blazor Server Sample App
02:31 - Explore Reusable Component Code
04:17 - Creating a Reusable Component
05:17 - Inside the Reusable Component
05:19 - Quick Explanation of _Imports.razor
05:31 - Component Code
06:17 - Razor Component Parameter Explained
07:07 - Pack Component into a NuGet Package
08:58 - Consume Reusable Component
16:17 - Outro

#blazor #reusable #wasm #aspnet #csharp #dotnet

Creating Blazor Reusable Components (Server & WebAssembly)
1.50 GEEK