You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/React.Core/IReactComponent.cs
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
*/
9
9
10
10
usingSystem;
11
+
usingSystem.IO;
11
12
12
13
namespaceReact
13
14
{
@@ -63,5 +64,24 @@ public interface IReactComponent
63
64
/// </summary>
64
65
/// <returns>JavaScript</returns>
65
66
stringRenderJavaScript();
67
+
68
+
/// <summary>
69
+
/// Renders the HTML for this component. This will execute the component server-side and
70
+
/// return the rendered HTML.
71
+
/// </summary>
72
+
/// <param name="writer">The <see cref="T:System.IO.TextWriter" /> to which the content is written</param>
73
+
/// <param name="renderContainerOnly">Only renders component container. Used for client-side only rendering.</param>
74
+
/// <param name="renderServerOnly">Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering.</param>
75
+
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
/// Regular expression used to validate JavaScript identifiers. Used to ensure component
29
34
/// names are valid.
@@ -87,8 +92,7 @@ public object Props
87
92
_props=value;
88
93
_serializedProps=JsonConvert.SerializeObject(
89
94
value,
90
-
_configuration.JsonSerializerSettings
91
-
);
95
+
_configuration.JsonSerializerSettings);
92
96
}
93
97
}
94
98
@@ -119,6 +123,24 @@ public ReactComponent(IReactEnvironment environment, IReactSiteConfiguration con
119
123
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
/// Renders the HTML for this component. This will execute the component server-side and
136
+
/// return the rendered HTML.
137
+
/// </summary>
138
+
/// <param name="writer">The <see cref="T:System.IO.TextWriter" /> to which the content is written</param>
139
+
/// <param name="renderContainerOnly">Only renders component container. Used for client-side only rendering.</param>
140
+
/// <param name="renderServerOnly">Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering.</param>
141
+
/// <param name="exceptionHandler">A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId)</param>
0 commit comments