+
Counter
+
+
Counter SectionContent was rendered = @SectionContentExists.ToString()
+
+ @if (SectionContentExists)
+ {
+
+ @currentCount
+
+ }
+
+
+
+
+@code {
+ [Parameter]
+ public bool SectionContentExists { get; set; }
+
+ [Parameter]
+ public object SectionId { get; set; }
+
+ int currentCount = 0;
+
+ void IncrementCount()
+ {
+ currentCount++;
+ }
+}
diff --git a/src/Components/test/testassets/BasicTestApp/SectionsTest/ParentComponentWithTwoChildren.razor b/src/Components/test/testassets/BasicTestApp/SectionsTest/ParentComponentWithTwoChildren.razor
new file mode 100644
index 000000000000..4834b62abcd2
--- /dev/null
+++ b/src/Components/test/testassets/BasicTestApp/SectionsTest/ParentComponentWithTwoChildren.razor
@@ -0,0 +1,72 @@
+@using Microsoft.AspNetCore.Components.Sections
+
+
+
Text Component
+
+
TextComponent SectionContent was rendered = @SectionContentExists.ToString()
+
+ @if (SectionContentExists)
+ {
+
+ Hello!
+
+ }
+
+
+@code {
+ [Parameter]
+ public bool SectionContentExists { get; set; }
+
+ [Parameter]
+ public object SectionId { get; set; }
+}