You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/blazor-introduction/5-knowledge-check.yml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Knowledge check
4
4
metadata:
5
5
title: Knowledge check
6
6
description: Check your knowledge about what Blazor is and when you should use it to build your apps.
7
-
ms.date: 1/19/2024
7
+
ms.date: 11/01/2024
8
8
author: danroth27
9
9
ms.author: daroth
10
10
ms.manager: markl
@@ -26,15 +26,15 @@ quiz:
26
26
explanation: "Blazor is a modern frontend web framework based on HTML, CSS, and C#."
27
27
- content: "A type of jacket resembling a suit jacket, but with a more casual cut."
28
28
isCorrect: false
29
-
explanation: "That's a 'blazer'! Blazor is a modern frontend web framework based on HTML, CSS, and C#"
29
+
explanation: "Nope, that's a *blazer*! Blazor is a modern frontend web framework based on HTML, CSS, and C#"
30
30
- content: "What language do you typically use to author Blazor components?"
31
31
choices:
32
32
- content: "JavaScript"
33
33
isCorrect: false
34
34
explanation: "You can use JavaScript from Blazor apps, but it's not the primary authoring language."
35
35
- content: "XAML"
36
36
isCorrect: false
37
-
explanation: "Blazor components are written in Razor, not XAML."
37
+
explanation: "Blazor components are written in Razor, not Extensible Application Markup Language (XAML)."
38
38
- content: "Visual Basic"
39
39
isCorrect: false
40
40
explanation: "You can use Visual Basic in Blazor apps, but you don't typically author Blazor components with Visual Basic."
@@ -49,7 +49,7 @@ quiz:
49
49
- content: "False"
50
50
isCorrect: false
51
51
explanation: "Blazor supports JavaScript interop, which lets you call JavaScript libraries and APIs from your Blazor apps."
52
-
- content: "Which of the following benefits is not a benefit of using Blazor?"
52
+
- content: "Which of the following benefits isn't a benefit of using Blazor?"
53
53
choices:
54
54
- content: "Build web UI fast with reusable components."
55
55
isCorrect: false
@@ -59,15 +59,15 @@ quiz:
59
59
explanation: "The ability to render Blazor components both from the server and the client enables building various web app architectures and optimizing the user experience."
60
60
- content: "Build the frontend and backend with one development stack."
61
61
isCorrect: false
62
-
explanation: "Building both the frontend and backend with .NET uses a common skillset, enables code sharing, and reduces complexity."
62
+
explanation: "Building both the frontend and backend with .NET uses a common skill set, enables code sharing, and reduces complexity."
63
63
- content: "Minimal download size."
64
64
isCorrect: true
65
65
explanation: "While server-based Blazor apps can load quickly, running .NET code on the client requires downloading a small .NET runtime with the app."
66
-
- content: "Which of the following reasons is valid reason to not use Blazor?"
66
+
- content: "Which of the following reasons is a valid reason to not use Blazor?"
67
67
choices:
68
68
- content: "You need to use an existing React component in your web app."
69
69
isCorrect: false
70
-
explanation: "You can typically use components from other frontend frameworks in Blazor as HTML custom elements. However, if you need to use many components from other frameworks, then Blazor may not be the best choice."
70
+
explanation: "You can typically use components from other frontend frameworks in Blazor as HTML custom elements. However, if you need to use many components from other frameworks, then Blazor might not be the best choice."
71
71
- content: "You need to host your web app on a cheap static site host, like GitHub Pages."
72
72
isCorrect: false
73
73
explanation: "Blazor apps can be configured to run fully on the client via WebAssembly and can be deployed as static sites."
@@ -76,4 +76,4 @@ quiz:
76
76
explanation: "Learning C# is worth the investment! With C# in your developer toolbelt you can use .NET to build virtually any type of app, including web apps, native mobile & desktop apps, games, and much more!"
77
77
- content: "You need to support older browsers."
78
78
isCorrect: true
79
-
explanation: "Blazor supports all modern browsers, but if you need to support older browsers that don't support modern web platform features, then Blazor may not be the best choice."
79
+
explanation: "Blazor supports all modern browsers, but if you need to support older browsers that don't support modern web platform features, then Blazor might not be the best choice."
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/blazor-introduction/6-summary.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
unitType: summary
6
6
title: Summary
7
7
description: "Blazor is a user interface framework for .NET developers that can be used to build applications with Razor and C#. Applications run on the server with ASP.NET Core or in the browser with WebAssembly."
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/blazor-introduction/includes/2-what-is-blazor.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Blazor is a modern frontend web framework based on HTML, CSS, and C# that helps you build web apps faster. With Blazor you build web apps using reusable components that can be run from both the client and the server so that you can deliver great web experiences. Blazor is part of .NET, a developer platform for building *anything*. .NET is free, open-source, and runs cross-platform.
1
+
Blazor is a modern frontend web framework based on HTML, CSS, and C# that helps you build web apps faster. With Blazor, you build web apps using reusable components that can be run from both the client and the server so that you can deliver great web experiences. Blazor is part of .NET, a developer platform for building *anything*. .NET is free, open-source, and runs cross-platform.
2
2
3
3
Some of the benefits of using Blazor include:
4
4
@@ -9,6 +9,6 @@ Some of the benefits of using Blazor include:
9
9
-**Server and client-side rendering:** Render components from both the server and the client to implement various web app architectures and deliver the best possible web app experience.
10
10
-**Progressively enhanced server rendering**: Use built-in support for enhanced navigation & form handling and streaming rendering to progressively enhance the user experience of server rendered web apps.
11
11
-**Interop with JavaScript:** Use the ecosystem of JavaScript libraries and browser APIs from your C# code.
12
-
-**Integrate with existing apps:** Integrate Blazor components with existing MVC, Razor Pages, or JavaScript based apps.
12
+
-**Integrate with existing apps:** Integrate Blazor components with an existing MVC, Razor Pages, or JavaScript based apps.
13
13
-**Great tooling**: Use Visual Studio or Visual Studio Code to get started in seconds and stay productive with great code editing support.
14
14
-**Web, mobile, and desktop**: Blazor components can also be used to build native mobile & desktop apps using a hybrid of native and web, called Blazor Hybrid.
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/blazor-introduction/includes/3-how-blazor-works.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ You author Blazor components using Razor syntax, a convenient mixture of HTML, C
12
12
13
13
Interactive Blazor components can handle standard web UI interactions using C# event handlers. Components can update their state in response to UI events and adjust their rendering accordingly. Blazor also includes support for two-way data binding to UI elements as a way to keep component state in sync with UI elements.
14
14
15
-
Below is an example of a simple Blazor counter component implemented in Razor. Most of the content is HTML, while the `@code` block contains C#. Every time the button is pressed the `IncrementCount` C# method is invoked, which increments the `currentCount` field, and then the component renders the updated value:
15
+
The following example is a simple Blazor counter component implemented in Razor. Most of the content is HTML, while the `@code` block contains C#. Every time the button is pressed the `IncrementCount` C# method is invoked, which increments the `currentCount` field, and then the component renders the updated value:
16
16
17
17
```razor
18
18
<h1>Counter</h1>
@@ -43,7 +43,7 @@ Alternatively, Blazor components can be rendered interactively from the client.
43
43
44
44

45
45
46
-
You can choose to render different components from the server or the client within the same app. Many of the pages in your app might not require any interactivity at all, and can be rendered statically from the server, while other more interactive parts of your app can be handled from the server or client. You can decide which component render mode to use at design time or runtime. With Blazor, you have the flexibility to build the web app architecture that's right for your scenario.
46
+
You can choose to render different components from the server or the client within the same app. Many of the pages in your app might not require any interactivity at all, and can be rendered statically from the server. While other more interactive parts of your app can be handled from the server or client. You can decide which component render mode to use at design time or runtime. With Blazor, you have the flexibility to build the web app architecture that's right for your scenario.
0 commit comments