Skip to content

Instantly share code, notes, and snippets.

@uzumaki-narut0
Last active June 14, 2020 08:41
Show Gist options
  • Save uzumaki-narut0/e3c8900e066f631122ada1e81eabc205 to your computer and use it in GitHub Desktop.
Save uzumaki-narut0/e3c8900e066f631122ada1e81eabc205 to your computer and use it in GitHub Desktop.
private string SSR(componentProps, progressiveComponentProps = null)
{
componentProps.ProgressiveComponent = RenderProgressiveComponents(progressiveComponentProps);
var reactComponent = Environment.CreateComponent(componentName, componentProps, containerId, clientOnly);
}
private static string RenderProgressiveComponents(componentProps)
{
IReactComponent reactComponent = Environment.CreateComponent("LazyCarousel", componentProps, "article-detail__carousel-wrapper");
return reactComponent.RenderHtml();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment