The example in the README shows (selector, content, attributes).
h('h1.classy', 'h', { style: {'background-color': '#22f'} }))
But the API documentation shows (selector, attributes, content).
h (tag, attrs, [text?, Elements?,...])
h('h1.fun', {style: {'font-family': 'Comic Sans MS'}}, 'Happy Birthday!')
It was very confusing for me to read the example and figure out what it means, it was not obvious that h was the text content and not some h tagName.
The interactive demo shows that any argument order works, but I think you should standardize on (selector, attributes, content).
The example in the README shows (selector, content, attributes).
But the API documentation shows (selector, attributes, content).
It was very confusing for me to read the example and figure out what it means, it was not obvious that
hwas the text content and not somehtagName.The interactive demo shows that any argument order works, but I think you should standardize on (selector, attributes, content).