react2angular icon indicating copy to clipboard operation
react2angular copied to clipboard

How can I render children inside the react component?

Open aplaskota opened this issue 3 years ago • 2 comments

Hi, I'm trying to figure out how can I make my react components more flexible. I'd like to achieve something like this inside my angular.js template.

<div>
    <myReactComponent>
        <p>Text<p/>
    </myReactComponent>
</div>

aplaskota avatar Oct 04 '21 09:10 aplaskota

Is this something you were able to figure out? I am running in to the same problem of trying to utilize ng-content within react.

EmBeaux avatar Feb 08 '22 22:02 EmBeaux

@EmBeaux nope, this is the biggest constraint in this package so I'm considering other options right now.

aplaskota avatar Mar 14 '22 11:03 aplaskota