Skip to content

Commit

Permalink
Merge pull request facebook#5231 from davidkpiano/patch-1
Browse files Browse the repository at this point in the history
Updating "JSX Gotchas" docs for Custom Attributes
  • Loading branch information
jimfb committed Nov 5, 2015
2 parents 6d5fe44 + 29939b7 commit 22b8952
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/02.3-jsx-gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22b8952

Please sign in to comment.