A dozen days ago the .NET 5.0 Release Candidate 1 (RC1) became available. And as you probably know, there are a lot of “treats” among the new features of the ASP.NET Core updates. One of them is Blazor JavaScript isolation with aid of JSObjectReference.

Which benefits this feature give us?

First of all, you do not have to save your JavaScript object in the global Window namespace anymore. Just export your Javascript function or object.

And the second convenient thing is you do not have to import JavaScript files manually to your HTML markup. No more forgotten

#posts #.net 5.0 #asp.net core #blazor #javascript #jsobjectreference

How to call isolated JavaScript code in .NET 5.0 Blazor projects with JSObjectReference
5.50 GEEK