You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,11 @@ Then play with the source files under the repo's demo* directories.
19
19
<html>
20
20
<head>
21
21
<scriptsrc="../build/react.js"></script>
22
-
<scriptsrc="../build/JSXTransformer.js"></script>
22
+
<scriptsrc="../build/browser.min.js"></script>
23
23
</head>
24
24
<body>
25
25
<divid="example"></div>
26
-
<scripttype="text/jsx">
26
+
<scripttype="text/babel">
27
27
28
28
// ** Our code goes here! **
29
29
@@ -59,7 +59,7 @@ React.render(
59
59
);
60
60
```
61
61
62
-
Please be minded that you have to use `<script type="text/jsx">` to indicate JSX codes, and include `JSXTransformer.js` to actually perform the transformation in the browser.
62
+
Please be minded that you have to use `<script type="text/babel">` to indicate JSX codes, and include `browser.min.js` to actually perform the transformation in the browser. `browser.min.js` is a browser version of Babel which could be get inside a babel-core npm release.
63
63
64
64
## Demo02: Use JavaScript in JSX ([source](https://github.com/ruanyf/react-demos/blob/master/demo02/index.html))
0 commit comments