Summary
With what we’ve covered in this chapter, you should be equipped with all the knowledge and experience you need to deal with anything JS related in your application, be it taking advantage of some built-in JS capabilities or using pre-built packages in your app with ease.
Throughout this chapter, we have learned why and when to use JavaScript in our Blazor WebAssembly application. We discovered the possible ways to implement interaction between the two languages in both directions. To put everything together and show you how you can leverage JavaScript to its full potential in your app, we ended up importing an open source library, wrapping it, and making it Blazor-ready so we can use it just like any other Blazor component.
By completing this chapter, you should now be able to do the following:
- Identify the purpose of JS in Blazor
- Detect when it’s necessary to use some JS in your apps
- Call JS methods from your .NET code and vice versa ...