You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I'm not really sure what you are actually asking for, your last example is done using the above "insertion point" as well. If you want multiple insertion points you either have to use props or filter this.props.children and pick out the ones you want (either by type or some prop).
In Web Components
<content>
is used as an intertion point.http://www.w3.org/TR/2013/WD-components-intro-20130606/#insertion-points
If there's something in React does the work, it could be like this:
or even:
I only find #848 about inserting components by sending them as props. That looks quite ugly when I have several nodes to insert:
Are there any better solutions?
The text was updated successfully, but these errors were encountered: