diff --git a/samples/StandaloneApp/Program.cs b/samples/StandaloneApp/Program.cs
index 2da2284002..e5000876a7 100644
--- a/samples/StandaloneApp/Program.cs
+++ b/samples/StandaloneApp/Program.cs
@@ -1,6 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+using Microsoft.Blazor.Browser.Rendering;
+using Microsoft.Blazor.Components;
+using Microsoft.Blazor.RenderTree;
using System;
namespace StandaloneApp
@@ -9,7 +12,16 @@ namespace StandaloneApp
{
public static void Main(string[] args)
{
- Console.WriteLine(Microsoft.Blazor.Test.Message);
+ new BrowserRenderer()
+ .AddComponent("app", new PlaceholderComponent());
+ }
+
+ private class PlaceholderComponent : IComponent
+ {
+ public void BuildRenderTree(RenderTreeBuilder builder)
+ {
+ builder.AddText("Hello from the placeholder component.");
+ }
}
}
}
diff --git a/samples/StandaloneApp/StandaloneApp.csproj b/samples/StandaloneApp/StandaloneApp.csproj
index bc9e3e57a8..40516dfe00 100644
--- a/samples/StandaloneApp/StandaloneApp.csproj
+++ b/samples/StandaloneApp/StandaloneApp.csproj
@@ -9,6 +9,7 @@