Blazor is used to create rich and interactive UIs with C#. Blazor applications are built using Razor components, which is an ASP.NET capability. These are files that contain C# and HTML.
Before we dive into Blazor, let's talk about web development in general.
Usually, you create a web application that runs on a server with code like Java , .NET, Node.js, or any other type of code.
Later Client Side framework is introduced and you start using frameworks like Angular or Vue or React to create your UI. These frameworks are great at developing fast and interactive UIs, and they all run on JavaScript, the scripting language of the web.
Wouldn't it be great if we could run C# in a browser. It works by having a .NET runtime that is compiled into WebAssembly bytecode. This .NET runtime runs in the browser and can run whatever .NET assemblies, so DLLs, that you give it, including C# code that we create in a Blazor application.

Why should we use Blazor?
Well, because if we use Blazor, we can run our app in any browser, including mobile ones, because WebAssembly is part of all major browsers. We are no longer dependent on plugins like we were back in the day with Flash and Silverlight. And we use Blazor because it allows us to reuse our C# skills.
C# is a great development langauage & strongly typed which means we can catch the error at compile time instead of runtime. Blazor is just a framework that runs on the .NET runtime, so we can use any library that we want to use, as long as it is compatible with .NET Standard.
This means that we can use our own libraries and also almost all public NuGet packages
There are couple of strong reasons, which indicate why we should use Blazor
- WebAssembly is supported by all major browsers
- Use C# for interactive web applications
- Reuse existing libraries
- Performance is near native
- Tooling and debugging
You can check and choose the tool as per your convenience. Below are options to get started with Blazor.

Let's discuss what is Blazor Server and Blazor Web Assembly,
Blazor WebAssembly runs on the client in the browser . It downloads everything that it needs to the browser including HTML, CSS, maybe some JavaScript, and possibly images. It also downloads the assemblies that make up the application, and it even downloads the complete .NET runtime that is converted into WebAssembly bytecode. All of this runs completely on WebAssembly, which is a part of all major web browsers, including mobile browsers. This type of Blazor application doesn't need a connection to a server. It just needs to load into the browser, and that's it. A Blazor WebAssembly app consists out of static files, so you don't need a full-fledged server to get this to the browser. You could host the static files on a content delivery network, or CDN, which is relatively cheap and is globally performant. You can also host it on a server in the cloud, in your own data center, or anywhere else.

Muhammad Saeed AhmadPosted Feb 8, 2022, 10:02 AM
Thanx for the information... anyone knows visual blazor designer available in the market??
IMAD AYOUBPosted Feb 6, 2022, 5:57 PM
Nice article. Thanks a lot.