Thursday 30 July 2020

Cool Blazor Snippets

I've started to create a set of useful Blazor component snippets I've been using on an application I've been developing. These should be useful in a stand-alone context. I'll add more as I create them.

Hides the content in production but renders it in development mode. 
Renders a small coloured badge top right for Bootstrap breakpoints. Wrapped in DevOnly component
Adapted from FlightFinder - this creates a greyed-out content area when the flag is set.
Hides the content when a value is null and shows a loading screen

5 - Adding Blazor

So in the previous step 4, we had upgraded our application to ASP.NET Core 3.1, but we still had no actual Blazor anywhere in the system. Ho...