Get Started with Blazor
Blazor is new experimental technology that could revolutionize the web development world. Blazor is worked on by the ASP.NET Team, Daniel Roth and Steve Sanderson. They are working hard experimenting with this new Framework.
Blazor experimental project
Full-stack web development with .Net via web assembly
Requires no plugin or code transpilation
Works in all modern browsers including mobile browsers
Why Blazor? What’s with a name?
Blazor name came from Razor, Razor is used to create our markup for application and then the Blazor part of it comes from the running it in the browser.
So we are able to use the same syntax to run inside the browser. Just we used to build the web application form ASP.net MVC and Asp.Net core.
So, How Blazor Run on Blazor. Look the picture below.
You see in picture there is Blazor.js and mono.js what are those?
Blazor Framework Feature
- Virtual Dom
- Components (MVVM Like)
- -data Binding
- -Event Handling
- Dependency Injection
Let’s Setup Blazor Environment
Install the following:
In Visual studio 2017
- The latest Blazor Language Services extension from the Visual Studio Marketplace.
- Open visual studio Select File>New> Project>Visual C#>.Net Core>Asp.Net core Web Application
- Select Blazor and Select Ok
- Press Ctrl-F5 to run in without debugging mode.
In VS code
Open terminal pressing (CTRL + ` )
Type Following command int terminal dotnet new -i Microsoft.AspNetCore.Blazor.Templates and Press Enter
dotnet new blazor -o FirstBlazorapp
Is Blazor performance running native performance in browser?
Not yet It just born.
you can see video here.
1. Link 1
2. Link 2
3. Link 3