This PR fixes #911 for all the other frameworks like HTML, Vue and Angular
I see now the playground is generating fragment as wrapper for these attrs. But fragment is not a valid html element. So, added a mapping. so, in non jsx projects it generates.
<div class="app-custom-fragment">
</div>
.app-custom-fragment {
display: contents
}
And for jsx, it directly imports from React
PS: It is mandatory not to pass semanticType for fragment nodes. Or else these mappings don't work for react. You need to pass only elementType.
This PR fixes #911 for all the other frameworks like
HTML
,Vue
andAngular
I see now the playground is generatingfragment
as wrapper for these attrs. But fragment is not a valid html element. So, added a mapping. so, in non jsx projects it generates.And for jsx, it directly imports from
React
PS: It is mandatory not to pass
semanticType
forfragment
nodes. Or else these mappings don't work for react. You need to pass onlyelementType
.