@samitouri / QOS-React-2 / commits / 29939b7270

Updating "JSX Gotchas" docs for Custom Attributes

Adds note that custom attributes are supported on custom elements.

David Khourshid committed Oct 21, 2015 at 08:18 UTC 29939b7270be6759d48ab6da6163fa757ded5ea9
1 file changed +6
docs/docs/02.3-jsx-gotchas.md
+6
@@ -61,6 +61,12 @@ If you pass properties to native HTML elements that do not exist in the HTML spe
61 <div data-custom-attribute="foo" />
62 ```
63
64 +However, arbitrary attributes are supported on custom elements (those with a hyphen in the tag name or an `is="..."` attribute).
65 +
66 +```javascript
67 +<x-my-component custom-attribute="foo" />
68 +```
69 +
70 [Web Accessibility](http://www.w3.org/WAI/intro/aria) attributes starting with `aria-` will be rendered properly.
71
72 ```javascript