[docs] Remove mentions of react-tools/jsx command
Paul O’Shannessy committed
Sep 10, 2015 at 17:43 UTC
097b32b7d2d0314e0ac71336d56cc06d6031fb0d
3 files changed
+7
-7
docs/docs/02-displaying-data.md
+1
-1
@@ -96,7 +96,7 @@ JSX is very small. To learn more about it, see [JSX in depth](/react/docs/jsx-in
96
97
JSX is similar to HTML, but not exactly the same. See [JSX gotchas](/react/docs/jsx-gotchas.html) for some key differences.
98
99
-The easiest way to get started with JSX is to use the in-browser `JSXTransformer`. We strongly recommend that you don't use this in production. You can precompile your code using our command-line [react-tools](https://www.npmjs.com/package/react-tools) package.
99
+[Babel exposes a number of ways to get started using JSX](http://babeljs.io/docs/setup/), ranging from command line tools to Ruby on Rails integrations. Choose the tool that works best for you.
100
101
102
## React without JSX
docs/docs/06-transferring-props.md
+2
-2
@@ -51,7 +51,7 @@ But what about the `name` prop? Or the `title` prop? Or `onMouseOver`?
51
52
> NOTE:
53
>
54
-> In the example below, the `--harmony ` flag is required as this syntax is an experimental ES7 syntax. If using the in-browser JSX transformer, simply open your script with `<script type="text/jsx;harmony=true">`. See the [Rest and Spread Properties ...](/react/docs/transferring-props.html#rest-and-spread-properties-...) section below for more details.
54
+> The `...` syntax is part of the Object Rest Spread proposal. This proposal is on track to become a standard. See the [Rest and Spread Properties ...](/react/docs/transferring-props.html#rest-and-spread-properties-...) section below for more details.
55
56
Sometimes it's fragile and tedious to pass every property along. In that case you can use [destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) with rest properties to extract a set of unknown properties.
57
@@ -143,7 +143,7 @@ z; // { a: 3, b: 4 }
143
144
> Note:
145
>
146
-> Use the [JSX command-line tool](https://www.npmjs.com/package/react-tools) with the `--harmony` flag to activate the experimental ES7 syntax.
146
+> This proposal has reached stage 2 and is now enabled by default in Babel. Older versions of Babel may need to explicitly enable this transform with `babel --optional es7.objectRestSpread`
147
148
## Transferring with Underscore
149
docs/docs/getting-started.md
+4
-4
@@ -68,20 +68,20 @@ Note that some browsers (Chrome, e.g.) will fail to load the file unless it's se
68
69
### Offline Transform
70
71
-First install the command-line tools (requires [npm](https://www.npmjs.com/)):
71
+First install the [Babel](http://babeljs.io/) command-line tools (requires [npm](https://www.npmjs.com/)):
72
73
```
74
-npm install -g react-tools
74
+npm install --global babel
75
```
76
77
Then, translate your `src/helloworld.js` file to plain JavaScript:
78
79
```
80
-jsx --watch src/ build/
80
+babel src --watch --out-dir build
81
82
```
83
84
-The file `build/helloworld.js` is autogenerated whenever you make a change.
84
+The file `build/helloworld.js` is autogenerated whenever you make a change. Read the [Babel CLI documentation](http://babeljs.io/docs/usage/cli/) for more advanced usage.
85
86
```javascript{2}
87
React.render(