locked
When do I need to use someone of several Microsoft technologies with asp.net core on a client side? RRS feed

  • Question

  • User-1350516731 posted

    Hello all!

    Now, Microsoft produced typescript, blazor. How to make solution between them to use one of JS frameworks or C# on client side?

    Thank you.

    Wednesday, September 2, 2020 2:21 AM

Answers

  • User-821857111 posted

    You should use Blazor if you prefer C# to JavaScript. However, if you are happy using TypeScript/JavaScript and have good experience with existing SPA frameworks like React, maybe you should stick with that instead.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 2, 2020 1:21 PM

All replies

  • User-821857111 posted

    You wouldn't use Blazor together with a JS framework, Blazor is designed to replace them. You would only use TypeScript with Blazor in cases where you need to use JavaScript interop: https://docs.microsoft.com/en-gb/aspnet/core/blazor/call-javascript-from-dotnet?view=aspnetcore-3.1

    Wednesday, September 2, 2020 5:21 AM
  • User-1350516731 posted

    So, I want to know what technology I should use for each concrete circumstances. When do I need to prefer Blazor, and when JS framework instead one?

    Wednesday, September 2, 2020 9:28 AM
  • User-821857111 posted

    You should use Blazor if you prefer C# to JavaScript. However, if you are happy using TypeScript/JavaScript and have good experience with existing SPA frameworks like React, maybe you should stick with that instead.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 2, 2020 1:21 PM