A comprehensive guide towards understanding Blazor WebAssembly to develop advanced modern front-end web applications piece by piece
Key Features
- Discover Blazor WebAssembly and learn its ins and outs in a step-by-step manner
- Learn every needed concept to develop and publish real-world SPA applications
- Build bulletproof components and write efficient unit tests using bUnit framework
Book Description
Blazor WebAssembly has become the trend in the world of software development, as a revolutionary technology that allows you to develop rich user interface web applications using C# without JavaScript. Blazor WebAssembly can also be run natively in the browser & mobile apps shortly with .NET MAUI; this adds a superweapon in the toolbox for .NET developers and open the doors for the JavaScript community to have a stable framework to build Single Page Applications, maintained by Microsoft and driven by the community.
Mastering Blazor WebAssembly is a complete resource that shows you everything you need from A to Z to build Client-Side web applications using C# & .NET 6.0. Throughout this book, you will discover the anatomy of a Blazor WebAssembly project, the build, style, and structure of the components, and will start implementing forms to catch the input and collect user's data, as well as deep dive into the topics of navigating between the pages, handling complex scenarios like RenderTrees, writing efficient unit tests, using variant security methods, and publishing the app to different providers all following a practical fashion.
By the end of this book, you will have all the required skills to build web apps with Blazor WebAssembly and have the basics for a future in mobile development with .NET MAUI & Blazor.
What you will learn
- Discover the structure and the anatomy of a Blazor project
- Develop basic and advanced components to meet your app needs
- Find out how to navigate within the app
- Learn how to use forms to collect user input
- Discover how to add some JavaScript logic to your app
- Learn performance best practices to make your apps light and fast
- Learning how to call RESTful APIs in Blazor
- Learn advanced Identity & Security techniques
- Build reliable apps by implementing unit testing and error handling
Who This Book Is For
This book targets existing .NET developers who are excited to start their journey with developing Single Page applications using their own C# skills without learning JS frameworks, for JS developers who heard about Blazor and want to discover its superpower and its easiness for web development, and for every geek who would like to discover and learn how things work under the hood step by step.
Table of Contents
- Understanding App Anatomy
- The Building Blocks of Blazor App
- Beyond the Fundamentals
- Navigation & Routing
- Catching User's Input with Forms & Validation
- Adding Some JavaScript to Your App
- Managing the Application State
- Building with Render Trees
- Securing Your Blazor WebAssembly App
- Handling Errors
- Giving Your App a Speed Boost
- Consuming Web APIs from Your Blazor App
- Testing Blazor WebAssembly Apps
- Pushing Your Blazor App to The Cloud
- What's Next