Skip to content

Commit d459883

Browse files
author
Justin Slattery
committed
Updating helper comments with argument, adding named argument for boolean param in test case
1 parent ad1b44d commit d459883

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/React.AspNet/HtmlHelperExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private static IReactEnvironment Environment
6666
/// <param name="props">Props to initialise the component with</param>
6767
/// <param name="htmlTag">HTML tag to wrap the component in. Defaults to &lt;div&gt;</param>
6868
/// <param name="containerId">ID to use for the container HTML tag. Defaults to an auto-generated ID</param>
69-
/// <param name="clientOnly">Skip rendering server-side and only output client-side initialisation code. Defaults to false</param>
69+
/// <param name="clientOnly">Skip rendering server-side and only output client-side initialisation code. Defaults to <c>false</c></param>
7070
/// <returns>The component's HTML</returns>
7171
public static IHtmlString React<T>(
7272
this IHtmlHelper htmlHelper,
@@ -97,7 +97,7 @@ public static IHtmlString React<T>(
9797
/// <param name="props">Props to initialise the component with</param>
9898
/// <param name="htmlTag">HTML tag to wrap the component in. Defaults to &lt;div&gt;</param>
9999
/// <param name="containerId">ID to use for the container HTML tag. Defaults to an auto-generated ID</param>
100-
/// <param name="clientOnly">Skip rendering server-side and only output client-side initialisation code. Defaults to false</param>
100+
/// <param name="clientOnly">Skip rendering server-side and only output client-side initialisation code. Defaults to <c>false</c></param>
101101
/// <returns>The component's HTML</returns>
102102
public static IHtmlString ReactWithInit<T>(
103103
this IHtmlHelper htmlHelper,

src/React.Tests/Core/ReactComponentTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void RenderHtmlShouldNotRenderComponentHTML()
7676
{
7777
Props = new { hello = "World" }
7878
};
79-
var result = component.RenderHtml(true); //renderContainerOnly = true
79+
var result = component.RenderHtml(renderContainerOnly: true);
8080

8181
Assert.AreEqual(@"<div id=""container""></div>", result);
8282
environment.Verify(x => x.Execute(It.IsAny<string>()), Times.Never);

0 commit comments

Comments
 (0)