Skip to content
Prev Previous commit
Next Next commit
Add ServerOnly property to IReactComponent
  • Loading branch information
Gustav Tonér committed Jan 15, 2018
commit 5f4af5044d054d7601be9197fa45662eaf5ba473
5 changes: 5 additions & 0 deletions src/React.Core/IReactComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public interface IReactComponent
/// </summary>
string ContainerClass { get; set; }

/// <summary>
/// Get or sets if this components only should be rendered server side
/// </summary>
bool ServerOnly { get; set; }

/// <summary>
/// Renders the HTML for this component. This will execute the component server-side and
/// return the rendered HTML.
Expand Down
5 changes: 5 additions & 0 deletions src/React.Core/ReactComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public class ReactComponent : IReactComponent
/// </summary>
public string ContainerClass { get; set; }

/// <summary>
/// Get or sets if this components only should be rendered server side
/// </summary>
public bool ServerOnly { get; set; }

/// <summary>
/// Gets or sets the props for this component
/// </summary>
Expand Down