Skip to content
New issue

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

add hyperscript-attribute-to-property #22

Merged
1 commit merged into from
Mar 5, 2016
Merged

add hyperscript-attribute-to-property #22

1 commit merged into from
Mar 5, 2016

Conversation

feross
Copy link
Collaborator

@feross feross commented Mar 5, 2016

No description provided.

@ghost
Copy link

ghost commented Mar 5, 2016

For some context, this patch means you won't need to

hx`<div className="whatever"></div>`

you can simply do:

hx`<div class="whatever"></div>`

@feross
Copy link
Collaborator Author

feross commented Mar 5, 2016

feross added a commit to webtorrent/webtorrent-desktop that referenced this pull request Mar 5, 2016
As of this PR (choojs/hyperx#22) to hyperx,
attributes are automatically converted to properties for the few cases
where they’re different: class, for, and http-equiv.
@ghost ghost merged commit 2195b6c into choojs:master Mar 5, 2016
@ghost
Copy link

ghost commented Mar 5, 2016

I bumped the major because some libs like deku (which is in the hyperx examples) don't (yet) alias className to class.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant