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' and 'for' for DOM property names #1223

Closed
wants to merge 1 commit into from

Commits on Mar 6, 2014

  1. Use 'class' and 'for' for DOM property names

    React fixes inconsistencies in the DOM and avoids being held back by older browsers (to the extent possible). The only reason that the DOM authors chose `className` and `htmlFor` was because the JS engines of the time didn't support using `class` and `for` as unquoted property names.
    
    Changing React to use `class` and `for` agrees with our principles of improving the DOM and using modern JS, and is what most people expect when first starting with React.
    sophiebits committed Mar 6, 2014
    Configuration menu
    Copy the full SHA
    ff8a202 View commit details
    Browse the repository at this point in the history