© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
P. HimschootMicrosoft Blazorhttps://doi.org/10.1007/978-1-4842-7845-1_10

10. JavaScript Interoperability

Peter Himschoot1  
(1)
Melle, Belgium
 

Sometimes there is just no escape from using JavaScript . For example, Blazor itself uses JavaScript to update the browser’s DOM from your Blazor components. In this chapter, you will look at interoperability with JavaScript and, as an example, you will build a Blazor component library to display a map using a popular open source JavaScript library. This chapter does require you to have some basic JavaScript knowledge.

Calling JavaScript from C#

Browsers have a lot of capabilities you might want to use in your Blazor ...

Get Microsoft Blazor: Building Web Applications in .NET 6 and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.