Skip to content

Commit 888b3c5

Browse files
authored
Split components followup (dotnet#17004)
1 parent 2672a33 commit 888b3c5

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

aspnetcore/blazor/advanced-scenarios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ In the following example, the loop in the `CreateComponent` method generates thr
7474
7575
### Sequence numbers relate to code line numbers and not execution order
7676

77-
Razor component files (*.razor*) are always compiled. Compilation is potentially a great advantage over interpreting code because the compile step can be used to inject information that improves app performance at runtime.
77+
Razor component files (*.razor*) are always compiled. Compilation is a potential advantage over interpreting code because the compile step can be used to inject information that improves app performance at runtime.
7878

7979
A key example of these improvements involves *sequence numbers*. Sequence numbers indicate to the runtime which outputs came from which distinct and ordered lines of code. The runtime uses this information to generate efficient tree diffs in linear time, which is far faster than is normally possible for a general tree diff algorithm.
8080

aspnetcore/blazor/event-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In the following example, `UpdateHeading` is called asynchronously when the butt
6262

6363
## Event argument types
6464

65-
For some events, event argument types are permitted. If access to one of these event types isn't necessary, it isn't required in the method call.
65+
For some events, event argument types are permitted. Specifying an event type in the method call is only necessary if the event type is used in the method.
6666

6767
Supported `EventArgs` are shown in the following table.
6868

aspnetcore/blazor/globalization-localization.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,7 @@ The following component shows an example of how to perform the initial redirecti
155155
}
156156
}
157157
```
158+
159+
## Additional resources
160+
161+
* <xref:fundamentals/localization>

aspnetcore/blazor/integrate-components.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ An existing Razor Pages or MVC app can integrate Razor components into pages and
3131

3232
The *_Layout.cshtml* file is located in the *Pages/Shared* folder in a Razor Pages app or *Views/Shared* folder in an MVC app.
3333

34-
* Add a `<script>` tag for the *blazor.server.js* script right before of the closing `</body>` tag:
34+
* Add a `<script>` tag for the *blazor.server.js* script immediately before of the closing `</body>` tag:
3535
3636
```html
3737
<script src="_framework/blazor.server.js"></script>
@@ -41,7 +41,7 @@ An existing Razor Pages or MVC app can integrate Razor components into pages and
4141

4242
1. Add an *_Imports.razor* file to the root folder of the project with the following content (change the last namespace, `MyAppNamespace`, to the namespace of the app):
4343

44-
```csharp
44+
```razor
4545
@using System.Net.Http
4646
@using Microsoft.AspNetCore.Authorization
4747
@using Microsoft.AspNetCore.Components.Authorization
@@ -74,7 +74,7 @@ To support routable Razor components in Razor Pages apps:
7474

7575
1. Follow the guidance in the [Prepare the app to use components in pages and views](#prepare-the-app-to-use-components-in-pages-and-views) section.
7676

77-
1. Add an *App.razor* file to the root of the project with the following content:
77+
1. Add an *App.razor* file to the project root with the following content:
7878

7979
```razor
8080
@using Microsoft.AspNetCore.Components.Routing
@@ -205,7 +205,7 @@ When using a custom folder to hold the app's components, add the namespace repre
205205
* Change `MyAppNamespace` to the app's namespace.
206206
* If a folder named *Components* isn't used to hold the components, change `Components` to the folder where the components reside.
207207

208-
```csharp
208+
```cshtml
209209
@using MyAppNamespace.Components
210210
```
211211

0 commit comments

Comments
 (0)