The library for web and native user interfaces.
Update 02.2-jsx-gotchas.md
Pete Hunt committed
Jul 14, 2013 at 16:46 UTC
64b9b55a0d53457e62eb5c658dd27d7bd9069f9f
1 file changed
-22
docs/docs/refactor/02.2-jsx-gotchas.md
-22
@@ -52,28 +52,6 @@ As a last resort, you always have the ability to insert raw HTML.
52
<div dangerouslySetInnerHTML={{'{{'}}__html: 'First · Second'}} />
53
```
54
55
-## Comments
56
-
57
-JSX supports both single-line and multi-line JavaScript comments within a tag declaration:
58
-
59
-```javascript
60
-<div // This is a single-line comment:
61
- /*
62
- And a multi-line
63
- comment
64
- */
65
-/>
66
-```
67
-
68
-As of React 0.3, there is no good way to insert comments within the children section. [Issue #82](https://github.com/facebook/react/issues/82) is tracking progress to enable the following:
69
-
70
-```javascript
71
-// Note: This is not implemented yet!
72
-<div>
73
- {/* This is a comment */}
74
-</div>
75
-```
76
-
55
## Custom HTML Attributes
56
57
If you pass properties to native HTML elements that do not exist in the HTML specification, React will not render them. If you want to use a custom attribute, you should prefix it with `data-`.