We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
h
The interactive demo shows that any argument order works, but I think you should standardize on (selector, attributes, content).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
h
was the text content and not someh
tagName.The interactive demo shows that any argument order works, but I think you should standardize on (selector, attributes, content).
The text was updated successfully, but these errors were encountered: