Reusing shared components between Blazor Web and MAUI apps using a Razor Class Library
Isolate shared functionality into a library for Blazor Server, Webassembly, or MAUI projects to reference.
Exactly the same razor views across multiple platforms, create a single source of development to share and reuse components across multiple projects.
Projects:
- Example.App: MAUI Blazor App
- Example.Web: Blazor Server / Webassembly project
- Example.WebComponents: Razor Class Library (Razor and wwwroot static assets)
Example repository from YouTube video: https://youtu.be/UpOPtj-qd6A