Skip to content

Commit 7c62e73

Browse files
committed
feat: update to React v15.0.1
1 parent 3144053 commit 7c62e73

File tree

11 files changed

+23509
-4119
lines changed

11 files changed

+23509
-4119
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ ReactDOM.render(
7272
);
7373
```
7474

75-
Attention, you have to use `<script type="text/babel">` to indicate JSX codes, and include `browser.min.js`, which is a [browser version](https://babeljs.io/docs/usage/browser/) of Babel and could be get inside a [babel-core](https://www.npmjs.com/package/babel-core) npm release, to actually perform the transformation in the browser.
75+
Attention, you have to use `<script type="text/babel">` to indicate JSX codes, and include `browser.min.js`, which is a [browser version](https://babeljs.io/docs/usage/browser/) of Babel and could be get inside a [babel-core@5](https://www.npmjs.com/package/babel-core) npm release, to actually perform the transformation in the browser.
7676

7777
Before v0.14, React use `JSTransform.js` to translate `<script type="text/jsx">`. It has been deprecated ([more info](https://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html)).
7878

7979
## Demo02: Use JavaScript in JSX
8080

8181
[demo](http://ruanyf.github.io/react-demos/demo02/) / [source](https://github.com/ruanyf/react-demos/blob/master/demo02/index.html)
8282

83-
You could also use JavaScript in JSX. It takes angle brackets (&lt;) as the beginning of HTML syntax, and curly brackets ({) as the beginning of JavaScript syntax.
83+
You could also use JavaScript in JSX. It takes angle brackets (&lt;) as the beginning of HTML syntax, and curly brackets (`{`) as the beginning of JavaScript syntax.
8484

8585
```js
8686
var names = ['Alice', 'Emily', 'Kate'];

0 commit comments

Comments
 (0)