Last active
August 29, 2015 14:19
-
-
Save jstrimpel/93c23f5ce249f8a48da9 to your computer and use it in GitHub Desktop.
react custom attribute support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
React.config({ | |
HTMLDOMPropertyConfig: { | |
isCustomAttribute: RegExp.prototype.test.bind(/^(data|aria|lazo)-[a-z_][a-z\d_.\-]*$/), | |
Properties: { | |
'some-other-prop': null | |
} | |
}); | |
// would trigger ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment