Skip to content

Commit 31838ac

Browse files
vjeuxzpao
authored andcommitted
Add @jsx common parser issues in the docs
Update getting-started.md (cherry picked from commit 418c1fc)
1 parent 636a1de commit 31838ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/docs/getting-started.md

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ React.renderComponent(
8888
);
8989
```
9090

91+
> Note:
92+
>
93+
> 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.
94+
9195
Update your HTML file as below:
9296

9397
```html{6,10}

0 commit comments

Comments
 (0)