Closed MaherFa closed 4 years ago
I'll fix it so it will not crash, but your construction is not a vnode anyway .
It is better to use SSX instead of that cryptic microformat :
$(body).append( <div.myclass><p>mytext</p></div> );
Or if mytext is a variable:
var mytext = "Hello world!";
$(body).append( <div.myclass><p>{mytext}</p></div> );
SSX makes intentions clearer I think.
SSX makes intentions clearer I think.
I Agree.
Minimal code to reproduce:
$(body).append ([div: { class:"myclass" },[p: "mytext" ]]);
the mentioned code will cause the app to crash silently, without displaying any errors.