Skip to content

Instantly share code, notes, and snippets.

@aymanosman
Created January 31, 2014 12:19
Show Gist options
  • Save aymanosman/8731058 to your computer and use it in GitHub Desktop.
Save aymanosman/8731058 to your computer and use it in GitHub Desktop.
// <label for={this.props.label}>{this.props.label}</label>
// compiles to...
React.DOM.label( {for:this.props.label}, this.props.label)
// should be...
React.DOM.label( {"for":this.props.label}, this.props.label)
// Because IE doesn't allow language keywords to appear unquoted in object literal keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment