Building Fast & Reusable Code
summary
Builds a reusable Blazor grid component from the WeatherForecast sample using .NET (net new blazor wasm), Razor components and generics, adds parameters for RenderFragment templates, column templates and cascading type parameters, implements attribute splatting for style/class passthrough and component-scoped isolated CSS, packages it into a Razor Class Library and reuses the same component in Blazor WASM, server and a .NET MAUI hybrid app; live demo has hot-reload hiccups but ultimately runs.
AI-written summary · about
chapters (12)
- 0:00Blazor introduction
- 5:24Live coding for learning
- 8:19New Blazor WebAssembly project
- 14:02Passing component parameters
- 17:58Adding child content
- 21:50Templated grid columns
- 26:59Cascading parameters
- 34:27Attribute splatting for styles
- 37:42Isolated CSS in components
- 39:27Razor Class Library
- 41:20Reuse in .NET MAUI
- 44:55Resources & closing
related talks
01h 01mBlazor, a new framework for browser-based .NET apps
01h 04mBuild Your First Full-Stack Blazor App
51mComponent-based C# and Razor Programming in Blazor
01h 02mDeveloping Reusable Components for Blazor WASM
41mAuthoring Custom Components
01h 01mBlazor, a new framework for browser-based .NET apps
01h 02mBlazor in more depth
43mBlazor in .NET 8: Mastering the New Render Modes and Building Interactive Web Apps
