From Blazor Fundamentals: Building Modern Web Applications with .NET 10
Table of Contents 5 of 97 chapters available · Premium unlocks the rest
1
Legal 2
About This Book 3
Part I: Foundations 4
Chapter 1: Welcome to Blazor and .NET 10 5
Chapter 1: Mini Quiz 6
Chapter 2: Setting Up Visual Studio 2022 and the Blazor Web App Template 7
Chapter 2: Full Example - Hello From Blazor 8
Chapter 2: Mini Quiz 9
Chapter 3: First Run and Debugging Essentials 10
Chapter 3: Mini Quiz 11
Chapter 3: Activity - Run and Explore Your App 12
Part II: Components and Razor Basics 13
Chapter 4: Blazor Components - Building Blocks of UI 14
Chapter 4: Full Example - Reusable Toggle Message Component 15
Chapter 4: Mini Quiz 16
Chapter 4: Activity - Build and Reuse a Component 17
Chapter 5: Razor Syntax and Data Binding 18
Chapter 5: Full Example - Interactive Feedback Form 19
Chapter 5: Mini Quiz 20
Chapter 5: Activity - Build a Simple Survey Form 21
Chapter 6: State and Cascading Values 22
Chapter 6: Full Example - Shared State with a Shopping Cart 23
Chapter 6: Mini Quiz - State Management 24
Chapter 6: Track Your Favorite Books 25
Chapter 7: Routing, Navigation, and Layout 26
Chapter 7: Full Example - Route Parameters and Dynamic Navigation 27
Chapter 7: Routing and Navigation 28
Chapter 7: Activity - Build a Multi-Page Navigation System 29
Part III: Forms, Services, Data, and Security 30
Chapter 8: Forms and Validation with Data Annotations 31
Chapter 8: Full Example - User Registration Form with Validation 32
Chapter 8: Mini Quiz - Forms and Validation 33
Chapter 8: Activity - Build a Newsletter Signup Form 34
Chapter 9: Dependency Injection and App Services 35
Chapter 9: Full Example - Injecting and Using a Weather Forecast Service 36
Chapter 9: Mini Quiz - Dependency Injection 37
Chapter 9: Activity - Create an Inject a Greeting Service 38
Chapter 10: Working with APIs Using HttpClient 39
Chapter 10: Full Example - Fetch and Display User Data From an API 40
Chapter 10: Mini Quiz - API Communication 41
Chapter 10: Activity - Create a Post Viewer From an API 42
Chapter 11: Security and Authentication in Blazor 43
Chapter 11: Full Example - Simulated Login with Conditional Access 44
Chapter 11: Mini Quiz - Authentication and Authorization 45
Chapter 11: Activity - Simulate a Role-Based Greeting 46
Chapter 12: JavaScript Interop: Calling JS from Blazo rand Vice Versa 47
Chapter 12: Full Example - Scroll to Top with JavaScript 48
Chapter 12: Mini Quiz - JavaScript Interoperability 49
Chapter 12: Activity - Display the Current Time Using JavaScript 50
Part IV: Advanced Component Techniques 51
Chapter 13: Advanced Components - RenderFragment, Templates, @ref, EventCallback, and Error Handling 52
Chapter 13: Full Example - Reusable Modal Dialog with RenderFragment and EventCallback 53
Chapter 13: Mini Quiz - Advanced Component Concepts 54
Chapter 13: Activity - Build a Reusable Notification Banner 55
Chapter 14: Styling and Responsive UI with CSS Isolation and Modern Frameworks 56
Chapter 14: Full Example - Themed Dashboard Panel with Responsive CSS 57
Chapter 14: Mini Quiz - Styling and Responsive Design 58
Chapter 14: Activity - Build a Styled, Responsive Profile Card 59
Chapter 15: Performance Tuning: Measuring, Virtualization, and Render Control 60
Chapter 15: Full Example - Virtualized Product List with Optimized Rendering 61
Chapter 15: Mini Quiz - Performance Optimization 62
Chapter 15: Activity - Optimize a Product Listing Page 63
Part V: The Unified Blazor Model in .NET 10 64
Chapter 16: Unified Blazor and Server-Side Rendering (SSR) 65
Chapter 16: Full Example - Hybrid Page with Static, Server, and WebAssembly Sections 66
Chapter 16: Mini Quiz: - Unified Blazor & SSR 67
Chapter 16: Activity - Build a Mixed-Mode Page 68
Chapter 17: Capstone - Hybrid Catalog App 69
Chapter 17: Mini Quiz - Hybrid Catalog App 70
Chapter 17: Activity - Extend the Catalog 71
Part VI: Quality, Reliability, and Real-Time 72
Chapter 18: Testing Blazor Components with bUnit 73
Chapter 18: Full Example - Writing and Running a bUnit Test for a Component 74
Chapter 18: Mini Quiz - Testing Blazor Components 75
Chapter 18: Activity - Build a Full Test Suite for a Real Component 76
Chapter 19: Real-Time Features with SignalR 77
Chapter 19: Full Example - Real-Time Chat with SignalR 78
Chapter 19: Mini Quiz: Real-Time Applications with SignalR 79
Chapter 19: Activity: Enhance Your Chat App with Usernames and Status 80
Part VII: PWAs, Accessibility, and Observability 81
Chapter 20: Building a Progressive Web App with Blazor WebAssembly 82
Chapter 20: Full Example - Simple Offline To-Do App 83
Chapter 20: Mini Quiz - Progressive Web Apps (PWAs) with Blazor WebAssembly 84
Chapter 20: Activity: Build and Test a Blazor PWA with Offline Support 85
Chapter 21: Accessibility (ARIA, Keyboard Support, Auditing) 86
Chapter 21: Full Example - Making a Feedback Form Accessible 87
Chapter 21: Mini Quiz - Accessibility Best Practices 88
Chapter 21: Activity - Apply Accessibility Enhancements to a Component 89
Chapter 22: Logging, Monitoring, and Diagnostics 90
Chapter 22: Full Example - Using ILogger and Application Insights 91
Chapter 22: Mini Quiz - Error Logging and Monitoring 92
Chapter 22: Activity - Add Logging and Monitoring 93
Part VIII: Shipping 94
Chapter 23: Deployment and Hosting 95
Chapter 23: Mini Quiz: Deployment and Hosting 96
Chapter 23: Activity - Deploy Your First Blazor App to Azure 97
Next Steps and Further Resources