DEV Community

Chris Noring
Chris Noring

Posted on

Learn Blazor for WebDev and get to use C# in all the layers

 -1- Overview video

This 20 min video gives you a mile high view of Blazor covering component input and output, routing, HTTP and a little on Forms. It's a good place to start

-2- First introduction to Blazor

This article goes through all you need to know to get started but also gives you enough knowledge to keep building out your skills.

 -3- JavaScript interop and Blazor

Sometimes you need to talk to JavaScript, even if you mostly will do C#. This shows how you can include an NPM package as part of your Blazor app.

-4- Routing in Blazor

Routing is an important topic. This article covers different types of routing and also covers router and query parameters.

Top comments (3)

Collapse
 
shaijut profile image
Shaiju T • Edited

Nice, 😄.

stackoverflow.com/questions/607732...

2 Questions:

  1. I think based on above post, we cannot do a alert using C#, we have to invoke IJSRuntime . So how does this IJSRuntime does the alert ? does it converts C# to Javascript and then runs in browser ?

  2. How is Blazor initial load time after release of .NET 5 ? compared to Angular and React , is it performant ?

Collapse
 
softchris profile image
Chris Noring
  1. I think it becomes WASM, have a look here, technical lead Steve Sanderson is trying to explain how Blazor does things, blog.stevensanderson.com/2018/02/0...
  2. Here's an article explaining that visualstudiomagazine.com/articles/... yrs, performance improving a lot on .NET 5.. As for vs Js SPAs, I don't have exact metrics. One thing I know they ar working on is the initial bundle size, which takes time on first load
Collapse
 
ortonomy profile image
🅖🅡🅔🅖🅞🅡🅨 🅞🅡🅣🅞🅝

shudder