Last active
June 14, 2020 08:41
-
-
Save uzumaki-narut0/e3c8900e066f631122ada1e81eabc205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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