Aymen Amri

Aymen Amri

  • 598
  • 1.9k
  • 171k

Why should I use blazor ?

Aug 23 2022 10:57 AM

Dear Community

I'm starting a new project, and we are thinking about using blazor.
It's the first time for me that I use it so before working with any technology I always want to get feedbacks from the experts :).

When I started to go through a small project written in blazor I noticed the following point :
I found in some .razor samples that xml is mixed with the C# code in the same file.
It reminded me the Asp way where everything was mixed in one file without having any code behind or viewModel ...

So my questions are :
    1- what's the advantage of a such implementation ? 
    2- how can we ensure the seperation of concerns with this implementation ?
    3- How easy will be the implementation of unit tests for the .razor files ?

The project is a classical one with backend and frontEnd. What are the advantages of blazor compared to other front end technologies
    
Thanks


Answers (6)