An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hello @Youness Haji ,
Thanks for your question.
You can refer to these following techniques to achieve your goals of strong SEO on the web and a native-feeling mobile app while maximizing code reuse:
- Web Frontend: Use ASP.NET Core Razor Pages. For a content-heavy, public-facing site, server-rendered HTML is still the gold standard for SEO and fast page loads. Blazor is a great technology, but Blazor WebAssembly has a heavy initial payload, and Blazor Server requires a persistent connection that isn't ideal for mobile browser reliability or simple content crawling.
- Shared Backend: Build a standalone ASP.NET Core Web API. This will serve as the central engine for your CMS logic, quizzes, and user data. Both your Razor Pages web app and your mobile app will consume this API, ensuring your business logic is written only once.
- Mobile App: Go with .NET MAUI connected to your Web API. Because you are using Razor Pages for the web (not Blazor), Blazor Hybrid wouldn't give you UI component reuse anyway. .NET MAUI will compile down to native UI controls, giving your iOS and Android users a much smoother, platform-authentic experience compared to a web-view wrapper.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.