コード例 #1
0
        protected override string GetReactContent(ReactArtifactContext context)
        {
            var modified =
                $@"
componentWillUnmount()
{{
{context.ChildrenRenderContent.FixIndent()}
}}";

            return(modified);
        }
コード例 #2
0
        protected override string GetReactContent(ReactArtifactContext context)
        {
            var modified = $@"
constructor(props)
{{
    super(props);
{context.ChildrenRenderContent.FixIndent()}
}}
";

            return(modified);
        }
コード例 #3
0
 protected override string GetReactContent(ReactArtifactContext context)
 {
     return(context.ChildrenRenderContent.FixIndent());
 }