Comment

Comment by lerpapoo

if this is about react then...xml inside javascript is for scrubs, just rename your createElement to 1 letter (mine is h) and use coffeescript lol.

i also renamed my "className" to "cn" so i dont have to type it but i wouldn't recommend that.

  h 'div',
    cn: 'myclass'
    h 'span',{},"mytext"
    h 'span,{},"asd"
parent lerpapoo 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton