Full Stack Web Development

H08 Wrapping JavaScript APIs for Use in ASP.NET Core Blazor

05/02/2024

11:00am - 12:15pm

Level: Intermediate to Advanced

Tim Purdum

Engineering Manager and Senior Software Engineer

dymaptic

If you are a .NET developer looking to expand your web skills, Blazor is the way of the future, allowing you to write web applications in C# instead of JavaScript. In this session, we will explore how to wrap existing JavaScript APIs and libraries so your dev team can call them directly from C#, abstracting away the JavaScript! You will leave with links to numerous examples of Blazor API wrappers, a blank wrapper template, and a step-by-step guide for writing your own wrapper.

You will learn:

  • To include any existing JavaScript package into your Blazor web application
  • To build and bundle TypeScript code with ESBuild as an extension of the .NET Build process
  • The intricacies of JavaScript interop, including calling .NET from JavaScript