@samitouri / QOS-React-2 / commits / f04d648888

Update getting-started.md

merge the warn and explain for the @jsx

XuefengWu committed Sep 23, 2014 at 15:22 UTC f04d6488889b0379173d6dde0d7306f146f68342
1 file changed +5 -4
docs/docs/getting-started.md
+5 -4
@@ -57,7 +57,11 @@ React.renderComponent(
57 document.getElementById('example')
58 );
59 ```
60 -> ```/** @jsx React.DOM */``` is must, or jsx would not convert.
60 +
61 +> Note:
62 +>
63 +> ```/** @jsx React.DOM */``` is *must*, which is jsx convention. 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.
64 +
65
66 Then reference it from `helloworld.html`:
67
@@ -90,9 +94,6 @@ React.renderComponent(
94 );
95 ```
96
93 -> Note:
94 ->
95 -> 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.
97
98 Update your HTML file as below:
99