Component Design: RenderFragment, Templated and Generic Components, CascadingValue, CSS Isolation and bUnit
Reusable Blazor components are built with RenderFragment and @typeparam; @key ties row state to the right item, ShouldRender cuts needless renders, and cascading values don't cross render mode boundaries. In the Bookstore panel we show a generic DataTable, an input that moves to the wrong row without @key, renders dropping from 42 to 4, a cascading value that is null in WebAssembly, QuickGrid, a Virtualize measurement, ::deep and bUnit tests, with real output.
15 Nov 2026
·
16 min
·
7