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

Use class instead of className; use standard html #14

Merged
merged 2 commits into from
Mar 5, 2016
Merged

Conversation

feross
Copy link
Member

@feross feross commented Mar 5, 2016

As of this PR (choojs/hyperx#22) to hyperx, html attributes are automatically converted to properties for the few cases where they’re different: class, for, and http-equiv.

So, let's change <div className=""> to <div class="">.

Also, I changed all the fancy <div.my-class> to <div class="my-class"> so it's just normal html which is easier to understand, I think. It's less succinct, but it's also clearer and matches the rest of the other attributes that will be in the tag.

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.
@@ -16,7 +16,7 @@
"create-torrent": "^3.22.1",
"debug": "^2.2.0",
"drag-drop": "^2.3.1",
"hyperx": "^1.4.0",
"hyperx": "feross/hyperx",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just temporary

@ungoldman
Copy link
Contributor

LGTM

ungoldman added a commit that referenced this pull request Mar 5, 2016
Use class instead of className; use standard html
@ungoldman ungoldman merged commit 2b17c1d into master Mar 5, 2016
@ungoldman ungoldman deleted the hyperx-pr branch March 5, 2016 07:39
@dcposch
Copy link
Contributor

dcposch commented Mar 5, 2016

Sure. No strong opinion.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants