Summary
Blazor is a great new piece of technology that could bring C# and .NET to a whole new level. In its present state, it is good enough to develop apps with. There are two main models; Server and WebAssembly.
Blazor Server links the client with the server over a SignalR connection allowing the server to push updates to the client whenever needed (such as when a user carries out an action). Blazor WebAssembly (Wasm) is a .NET SPA framework that compiles C# to WebAssembly. It allows .NET code to run in the browser. We can interact with JavaScript using IJSRuntime
and vice versa.
Blazor is component-based, meaning that every piece of UI in Blazor is a component, including pages. We explored three ways to create components: C#-only, Razor-only, and a hybrid that combines C# and Razor in two different files. A component can also have its own isolated CSS without the need to worry about conflicts.
We explored the life cycle of a Razor component, which is very simple yet powerful...