© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
T. LitvinaviciusExploring Blazorhttps://doi.org/10.1007/978-1-4842-8768-2_3

3. Blazor Components and Navigation

Taurius Litvinavicius1  
(1)
Kaunas, Lithuania
 

This chapter will introduce the specifics of Blazor pages and components. You will learn how page files are created and how navigation is set up. Then you will learn all that you need to know about components and their features, such as parameters, custom events, and more.

Pages and Navigation

In general, a page in Blazor is a .razor file that contains your code, and it has a route to it specified in the code. It can also read parameters, and that same file can act as a component, which you will learn ...

Get Exploring Blazor: Creating Server-side and Client-side Applications in .NET 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.