File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ Usually, a startup code of the Blazor WebAssembly app should be like this.
231
231
232
232
```csharp
233
233
var builder = WebAssemblyHostBuilder.CreateDefault(args);
234
- builder.RootComponents.Add<App>("app");
234
+ builder.RootComponents.Add<App>("# app");
235
235
builder.RootComponents.Add<HeadOutlet>("head::after");
236
236
```
237
237
However, if you use the `WebAssemblyPrerendered` render mode when prerendering, you should change the startup code below.
@@ -242,7 +242,7 @@ var builder = WebAssemblyHostBuilder.CreateDefault(args);
242
242
// already registered via prerednered HTML contents.
243
243
if (!builder.RootComponents.Any())
244
244
{
245
- builder .RootComponents .Add <App >(" app" );
245
+ builder .RootComponents .Add <App >(" # app" );
246
246
builder .RootComponents .Add <HeadOutlet >(" head::after" );
247
247
}
248
248
```
You can’t perform that action at this time.
0 commit comments