Blazor WebAssembly by Example
A project-based guide to building web apps with .NET, Blazor WebAssembly, and C#
Toi B. Wright
BIRMINGHAMMUMBAI
Blazor WebAssembly by Example
Copyright 2021 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Associate Group Product Manager: Pavan Ramchandani
Senior Editor: Keagan Carneiro
Content Development Editor: Adrija Mitra
Technical Editor: Saurabh Kadave
Copy Editor: Safis Editing
Project Coordinator: Manthan Patel
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Production Designer: Vijay Kamble
First published: June 2021
Production reference: 1040621
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-80056-751-1
www.packt.com
To my boys, for their never-ending patience and understanding. To my readers, for their ceaseless curiosity about new technologies.
Toi B. Wright
Foreword
Hi, friends! I've known Toi Wright for more than 15 years. I first met her at the Microsoft MVP Summit in Redmond back in 2005, if you can believe that. She's a brilliant technologist, community leader, and tech organizer, and we see each other every year at the annual Microsoft MVP Summit. I've had the opportunity to travel from my home in Portland to beautiful Dallas to speak to her in person at the Dallas ASP.NET User Group, of which she's the founder and organizer.
Toi has been very active in the ASP.NET community for many years. She has written courseware for Microsoft on ASP.NET and this is her second book on the topic. She's a respected programmer, architect, and communicator.
In this book, she walks you step by step through the creation of a number of standalone projects that are built on the Blazor WebAssembly framework. You'll learn how to leverage your experience with the .NET ecosystem to complete many different types of projects. Blazor takes .NET and your .NET skills to the web in a new way, and this book is the key to enabling that.
In Blazor WebAssembly by Example, Toi has shared her extensive knowledge and years of experience as a web developer and created an easy-to-follow guide for you to quickly learn how to use the Blazor WebAssembly framework. Through her words, step-by-step instructions, copious screenshots, and code samples, you will get started with running C# in your browser instead of JavaScript. Everything she'll show you, including .NET and Blazor itself, is all open source and based on open standards! I'm so glad that we both have a partner in Toi Wright to guide us in this powerful new web framework!
Scott Hanselman hanselman.com
Partner Program Manager at Microsoft
Contributors
About the author
Toi B. Wright has been obsessed with ASP.NET for almost 20 years. She is the founder and president of the Dallas ASP.NET User Group. She has been a Microsoft MVP in ASP.NET for 16 years and is also an ASPInsider. She is an experienced full-stack software developer, book author, courseware author, speaker, and community leader with over 25 years of experience. She has a B.S. in computer science and engineering from the Massachusetts Institute of Technology (MIT) and an MBA from Carnegie Mellon University (CMU).
You can find her on Twitter at @misstoi.
I would like to thank my husband and my two sons for their continued support, patience, and encouragement throughout the protracted process of writing this book.
About the reviewer
Jrgen Gutsch is a .NET-addicted web developer. He has been working with .NET and ASP.NET since the early versions in 2002. Before that, he wrote server-side web applications using classic ASP. He is also an active person in the .NET developer community. Jrgen writes for the dotnetPro Magazine, one of the most popular German-speaking developer magazines. He also publishes articles in English on his blog, ASP.NET Hacker, and contributes to several open source projects. Jrgen has been a Microsoft MVP since 2015.
The best way to contact him is using Twitter: @sharpcms.
He works as a developer, consultant, and trainer for the digital agency YOO Inc., located in Basel, Switzerland. YOO Inc. serves national as well as international clients and specializes in creating custom digital solutions for distinct business needs.