Merge pull request #5231 from davidkpiano/patch-1

Updating "JSX Gotchas" docs for Custom Attributes
(cherry picked from commit 22b8952fbf)
This commit is contained in:
Jim
2015-11-10 10:43:58 -08:00
committed by Paul O’Shannessy
parent 34bb99b07f
commit 17761fae9b
+6
View File
@@ -61,6 +61,12 @@ If you pass properties to native HTML elements that do not exist in the HTML spe
<div data-custom-attribute="foo" />
```
However, arbitrary attributes are supported on custom elements (those with a hyphen in the tag name or an `is="..."` attribute).
```javascript
<x-my-component custom-attribute="foo" />
```
[Web Accessibility](http://www.w3.org/WAI/intro/aria) attributes starting with `aria-` will be rendered properly.
```javascript