Blazor C# Vocab Flashcards
Blazor C# Fundamentals (30 cards)
Word
Definition
Blazor Component
An element of UI. Built in C# classes that handle user events, define flexible UI rendering logic, can be nested and reused, can be shared and distributed. Usually written in the form of a Razor markup page (.razor).
Razor
A syntax for combining HTML markup and C# code designed for developer productivity. Allows you to switch between HTML and C# in the same file.
Document Object Model (DOM)
The Data representation of the objects that compromise the structure and content of a document on the web. It is a programming interface, this allows programming languages to interact with the page.
Script
A program run by a browser.
Document
The root document of the DOM itself.
Node
Every object located within a document is a node of some kind. (Element node, text node, attribute node).
Element
An element or node of type element returned by a member of the DOM API. (table elements, h1 elements, etc). node → Element (inherits form node).
NodeList
An array of elements. Accesible by index. (list.item(1), or list[1]).
Attr
An object reference that represents a special interface. Attributes are nodes in the DOM like elements.
NamedNodeMap
Similar to an array, but items are accesed by name or index. You can add and remove items from a namedNodeMap.
Window Object
represents something like the browser.
Blazor
.Net frontend web framework that supports both server-side rendering and client interactivity in a single programming model.
Interactive SSR
Interactive server side rendering is where the server processes the initial request, generating the complete HTML for a page and sends it to the client. Allows users to see content faster.
Client-Side Rendering (CSR)
The client is responsible for rendering the content and handling all interactions. Server sends minimal HTML shell and JavaScript files that execute on the client side to build and manage the UI. Blazor Web Apps supports this with .NET runtime built with WebAssembly.
SignalR
A library that enables real-time, two-way communication between client and server in web applications, commonly used for live updates like chat, notifications, or dashboards.
Lambda Expression
An anonymous method/function that can contain expressions or statements. It’s commonly used for defining short blocks of code that can be passed as arguments to functions like LINQ methods (Where, Select, etc.) or for event handling
Static Server Rendering
Server generates HTML content at build time (before any requests). The HTML content is then served to the client as is, without requiring any further processing.
Dynamic Server Rendering
The server generates the HTML content for each request in real time.
Single Page App
A web app that loads a single HTML page, and dynamically updates through the DOM. SPAs manage routing, data fetching, and UI rendering within the browser itself.
Blazor Web Assembly
Apps execute entirely on the user’s browser. No need for server-side rendering, behaves more like a SPA application
MVC Model
Models, Views, Controllers. Controller processes incoming requests, manipulates the Model, and returns the appropriate View to user. This is common in ASP.NET. HTML Page is rendered server-side and sent back to the client.
Blazor Server
UI logic runs on the server side, and the HTML is dynamically generated and sent to the client in real-time through SingalR.
JavaScript Interop
A library that allows Blazor components to call JavaScript functions and vice versa, enabling interaction between Blazor and JavaScript code.