mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
@@ -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