docs add warning to add jsx pragma
Cheng Lou committed
Dec 28, 2013 at 22:52 UTC
8f5ef0fdf2d574da8613b8d2ac624816a8ae63eb
1 file changed
+5
docs/docs/02.1-jsx-in-depth.md
+5
@@ -10,6 +10,11 @@ next: jsx-gotchas.html
10
JSX is a JavaScript XML syntax transform recommended for use
11
with React.
12
13
+> Note:
14
+>
15
+> Don't forget the `/** @jsx React.DOM */` pragma at the beginning of your file! This tells JSX to process the file for React.
16
+>
17
+> If you don't include the pragma, your source will remain untouched, so it's safe to run the JSX transformer on all JS files in your codebase if you want to.
18
19
## Why JSX?
20