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
<div>
Temp:<div>This is child</div>
Default:<div>This is child</div>
</div>
The text was updated successfully, but these errors were encountered:
mind0n
changed the title
Not able to specify slot name inside render function
Not able to specify slot name inside render function (createElement)
May 28, 2017
@yyx990803 is there a technical reason why we need to proceed as is ? this way is highly unpractical when dealing with recursively generated nodes in a large batch, i wonder if there's any good reason why we can't do better.
What problem does this feature solve?
Specify slot name within render function like below:
return createElement(rootcmp, { default: [ createElement(childCmp) ], temp: [ createElement(childCmp2) ] } );
What does the proposed API look like?
From within the render function, specify the slot name such as 'default', 'temp' when creating child elements.
return createElement(rootcmp, { default: [ createElement(childCmp) ], temp: [ createElement(childCmp2) ] } );
Full code below:
Expected behavior:
The text was updated successfully, but these errors were encountered: