diff --git a/src/React.Core/IReactComponent.cs b/src/React.Core/IReactComponent.cs index 48078a760..3cdf7f794 100644 --- a/src/React.Core/IReactComponent.cs +++ b/src/React.Core/IReactComponent.cs @@ -5,12 +5,12 @@ * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. - */ - + */ + using System; namespace React -{ +{ /// /// Represents a React JavaScript component. /// @@ -46,8 +46,8 @@ public interface IReactComponent /// return the rendered HTML. /// /// Only renders component container. Used for client-side only rendering. - /// Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering. - /// + /// Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering. + /// A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId) /// HTML string RenderHtml(bool renderContainerOnly = false, bool renderServerOnly = false, Action exceptionHandler = null); diff --git a/src/React.Core/ReactComponent.cs b/src/React.Core/ReactComponent.cs index 2ebe4a7b8..e736604f0 100644 --- a/src/React.Core/ReactComponent.cs +++ b/src/React.Core/ReactComponent.cs @@ -5,8 +5,8 @@ * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. - */ - + */ + using System; using System.Linq; using System.Text.RegularExpressions; @@ -15,7 +15,7 @@ using React.Exceptions; namespace React -{ +{ /// /// Represents a React JavaScript component. /// @@ -106,8 +106,8 @@ public ReactComponent(IReactEnvironment environment, IReactSiteConfiguration con /// return the rendered HTML. /// /// Only renders component container. Used for client-side only rendering. - /// Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering. - /// + /// Only renders the common HTML mark up and not any React specific data attributes. Used for server-side only rendering. + /// A custom exception handler that will be called if a component throws during a render. Args: (Exception ex, string componentName, string containerId) /// HTML public virtual string RenderHtml(bool renderContainerOnly = false, bool renderServerOnly = false, Action exceptionHandler = null) {