Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Blazor Web Development Cookbook
  • Table Of Contents Toc
Blazor Web Development Cookbook

Blazor Web Development Cookbook

By : Pawel Bazyluk
close
close
Blazor Web Development Cookbook

Blazor Web Development Cookbook

By: Pawel Bazyluk

Overview of this book

With support for both server-side and client-side hosting, as well as the flexibility to mix render modes, Blazor empowers you to leverage cloud computing while maintaining the performance of local applications. Paweł Bazyluk—a Blazor expert with over a decade of experience in .NET technologies—shows you how Blazor, a Microsoft framework, enables you to create interactive web applications using C# and .NET, while reducing reliance on JavaScript. This cookbook highlights Blazor’s vast possibilities using practical recipes that address key aspects of web development and showcase the framework's versatility in building modern, integrated applications. Pawel demonstrates how to skillfully navigate component-based architecture, and create, parameterize, and customize components to achieve high modularity. Working through practical insights and hands-on guidance in each chapter, you’ll progress from advanced data binding and event handling intricacies to optimizing data display using grids. You’ll explore application state management, build interactive forms with validation, leverage Blazor’s routing engine, and keep every part of the application secure. The book also explores cutting-edge topics, touching on how to enhance your application with AI-powered features. By the end of the book, you’ll be fully equipped to build robust, scalable, and secure web applications in Blazor.
Table of Contents (13 chapters)
close
close

Working with Component-Based Architecture

Welcome to Blazor Web Development Cookbook. This book will be your comprehensive guide to enhancing your skills in building dynamic and scalable web applications with Blazor. It offers a collection of practical solutions and techniques for tackling the most common challenges in web development. In each chapter, we’ll dive into different areas of application development. This book is packed with detailed examples and actionable tips. We’ll explore a range of topics – from optimizing components, through managing application state to increasing your application’s interactivity and security. Having such a resource will allow you to gain development velocity and focus on addressing business requirements.

In this chapter, you’ll learn about the core principles of component-based architecture in Blazor. We’ll start by creating a basic component and progress to more complex aspects such as parameterization for reusability and handling required parameters. We’ll also explore advanced topics, such as building components with customizable content, implementing generic components, and increasing loose coupling with DynamicComponent.

By the end of this chapter, you’ll be able to implement and optimize components in Blazor. Understanding component-based architecture is foundational in building more sophisticated, interactive, and responsive web applications. It’s also essential for writing scalable, maintainable, and reusable code.

We’re going to cover the following recipes in this chapter:

  • Initializing a project
  • Creating your first basic component
  • Declaring parameters on a component
  • Detecting render mode at runtime
  • Ensuring that a parameter is required
  • Passing values from the parent component with CascadingParameter
  • Creating components with customizable content
  • Making components generic
  • Decoupling components with DynamicComponent
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Blazor Web Development Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon