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

Stop transforming class -> className #328

Merged
merged 1 commit into from
Sep 10, 2013

Conversation

zpao
Copy link
Member

@zpao zpao commented Sep 9, 2013

It has been decided.

Going to sync the timing of this with all the internal things we need to fix, but getting it out there.

  • update transform
  • update examples
  • update tests
  • add warning for class and for to suggest className and htmlFor

Update the broken examples too (`git grep class=`)
'class': 'className',
cxName: 'className'
};

var JSX_ATTRIBUTE_TRANSFORMS = {
cxName: function(attr) {
Copy link
Member Author

Choose a reason for hiding this comment

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

We already killed this internally too, so I'll end up getting rid of it at the same time.

@jeffmo
Copy link
Contributor

jeffmo commented Sep 10, 2013

I wish github had like buttons...

jeffmo pushed a commit that referenced this pull request Sep 10, 2013
Stop transforming class -> className
@jeffmo jeffmo merged commit 7a6a508 into facebook:master Sep 10, 2013
@chenglou chenglou mentioned this pull request Sep 12, 2013
@mhlmhl
Copy link

mhlmhl commented Mar 3, 2016

Would it be unreasonable to update the documentation examples to use "className" instead of "class". One would think that copying the examples would get you working code ... but no.

@facebook-github-bot
Copy link

@zpao updated the pull request.

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.

5 participants