mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
add tip for the important jsx convention
I missed the convention and wast hours to figure out what's wrong. Add this tip in the document for who would miss the importance comment.
This commit is contained in:
1 parent
9d7e3a7471
commit
0ae09f4c70
1 file changed
+2
@@ -57,6 +57,8 @@ React.renderComponent(
|
||||
document.getElementById('example')
|
||||
);
|
||||
```
|
||||
> ```/** @jsx React.DOM */``` is must, or jsx would not convert.
|
||||
|
||||
Then reference it from `helloworld.html`:
|
||||
|
||||
```html{10}
|
||||
|
||||
Reference in new issue
Block a user