Web Development with Blazor – Third Edition 版次: A practical guide to start building interactive UIs with C# 12 and .NET 8
Author: Jimmy Engström (Author)
Publisher finelybook 出版社: Packt Publishing
Edition 版次: 3rd ed.
Publication Date 出版日期: 2024-04-29
Language 语言: English
Print Length 页数: 366 pages
ISBN-10: 1835465919
ISBN-13: 9781835465912
Book Description
Develop modern web UIs with Blazor Server and Blazor WebAssembly – now introducing Streaming and Static Server-Side Rendering (SSR) and flexible hosting models in .NET 8
Purchase of the print or Kindle book includes a free eBook in PDF format
Key Features
- Create a production-ready Blazor application from start to finish
- Find out how, when, and why to use Blazor Server and Blazor WebAssembly, as well as Blazor Hybrid
- Explore crucial new coverage of streaming rendering, server-side rendering (SSR), flexible hosting models, and Blazor templates
Book Description
Web Development with Blazor is your essential guide to building and deploying interactive web applications in C# – without relying on JavaScript.
Written by an early Blazor adopter and updated for .NET 8, this book takes you through the end-to-end development of an example app, helping you to overcome common challenges along the way. You’ll pick up both Blazor Server and Blazor WebAssembly and discover cutting-edge tools to enrich your development experience.
Responding to evolving needs, this edition introduces flexible hosting models, allowing you to mix and match hosting approaches to create flexible and scalable Blazor applications. It also presents the new Blazor templates, which provide ready-made solutions to simplify and expedite development. You’ll learn about the game-changing server-side rendering (SSR), a hybrid hosting model blending the strengths of Blazor Server and Blazor WebAssembly, as well as streaming rendering, a new technique that boosts the performance and user experience of Blazor apps.
By the end of this book, you’ll have the confidence you need to create and deploy production-ready Blazor applications using best practices, along with a big-picture view of the Blazor landscape.
What you will learn
- Understand how and when to use Blazor Server, Blazor WebAssembly, and Blazor Hybrid
- Learn how to build simple and advanced Blazor components
- Explore how Minimal APIs work and build your own API
- Discover how to use streaming rendering and server-side rendering (SSR)
- Mix and match different hosting models to create flexible and scalable Blazor apps
- Familiarise yourself with the new Blazor templates that simplify development
- Debug your Blazor Server and Blazor WebAssembly applications
Who this book is for
This book is for .NET web developers and software developers who want to use their existing C# skills to build interactive web applications running either inside the web browser using Blazor WebAssembly, on the server using Blazor Server, or a combination of the two.
You’ll need basic knowledge of C# and prior exposure to .NET web development before you get started; the book will guide you through the rest.
Table of Contents
- Hello Blazor
- Creating Your First Blazor App
- Managing State – Part 1
- Understanding Basic Blazor Components
- Creating Advanced Blazor Components
- Building Forms with Validation
- Creating an API
- Authentication and Authorization
- Sharing Code and Resources
- JavaScript Interop
- Managing State – Part 2
- Debugging the Code
- Testing
- Deploying to Production
- Moving from, or Combining, an Existing Site
- Going Deeper into WebAssembly
- Examining Source Generators
- Visiting .NET MAUI
- Where to Go from Here
About the Author
Jimmy Engström has been developing ever since he was 7 years old and got his first computer. He loves to be on the cutting edge of technology, trying new things. When he got wind of Blazor, he immediately realized the potential and adopted it already when it was in beta. He has been running Blazor in production since it was launched by Microsoft.
His passion for the .NET industry and community has taken him around the world, speaking about development. Microsoft has recognized this passion by awarding him the Microsoft Most Valuable Professional award 8 years in a row.