-
Book Overview & Buying
-
Table Of Contents
Blazor WebAssembly by Example - Third Edition
By :
You are now able to create a modal dialog and share it across multiple projects using a Razor class library.
In this chapter, I introduced RenderFragment parameters, EventCallback parameters, and CSS isolation.
You used the Blazor WebAssembly Standalone App project template to create a new project. Then you created a reusable Dialog component that acts like a modal dialog. The Dialog component demonstrates both RenderFragment parameters and EventCallback parameters. Also, it uses CSS isolation for its styles.
In the final section, you packaged the component into a Razor class library.
So far, you have avoided using JavaScript in your Blazor WebAssembly apps. However, some browser features require it. The next chapter covers JavaScript interop for Blazor WebAssembly apps.