简体   繁体   中英

Using Blazor (i.e. WebAssembly) + javascript

Im really excited at what WebAssembly can bring to us web UI developers. Now correct me if im wrong, but a web assembly / blazor project can easily and happily coexist with javascript. The script might handle all the http web requests and various clientside manipulations.

Your thoughts?

Yes, you could do that, as of version 0.4 it is easy to interop between c# and javascript and vise versa.

But you don't have to, the beauty of blazor is that you can just use the HttpClient class from .net framework System.Net.Http namespace for calls to your backend. And make razor cshtml components for DOM manipulation.

More on http calls from blazor

More on js interop

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM