mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add @jsx common parser issues in the docs
Update getting-started.md
This commit is contained in:
committed by
Vjeux
parent
3373572e15
commit
418c1fc427
@@ -88,6 +88,10 @@ React.renderComponent(
|
||||
);
|
||||
```
|
||||
|
||||
> Note:
|
||||
>
|
||||
> The comment parser is very strict right now, in order for it to pick up the `@jsx` modifier, two conditions are required. The `@jsx` comment block must be the first comment on the file. The comment must start with `/**` (`/*` and `//` will not work). If the parser can't find the `@jsx` comment, it will output the file without transforming it.
|
||||
|
||||
Update your HTML file as below:
|
||||
|
||||
```html{6,10}
|
||||
|
||||
Reference in New Issue
Block a user