The library for web and native user interfaces.
Cleanup "Tooling Integration"
Paul O’Shannessy committed
Jul 16, 2013 at 23:31 UTC
1b64508aab96303e2dd8e5cb291f9b1a0277b069
1 file changed
+12
-4
docs/docs/08-tooling-integration.md
+12
-4
@@ -6,26 +6,34 @@ permalink: tooling-integration.html
6
prev: more-about-refs.html
7
next: reference.html
8
---
9
+
10
Every project uses a different system for building and deploying JavaScript. We've tried to make React as environment-agnostic as possible.
11
12
+
13
## CDN-hosted React
14
13
-We provide CDN-hosted versions of React [on our download page](/react/downloads.html). These prebuilt files use the UMD module format. Dropping them in with a simple `<script>` tag will inject a `React` global into your environment. It also works out-of-the-box in CommonJS and AMD environments.
15
+We provide CDN-hosted versions of React [on our download page](/react/downloads.html). These prebuilt files use the UMD module format. Dropping them in with a simple `<script>` tag will inject a `React` global into your environment. It should also work out-of-the-box in CommonJS and AMD environments.
16
+
17
15
-## Using Master
18
+## Using master
19
+
20
+We have instructions for building from `master` [in our GitHub repository](https://github.com/facebook/react). We build a tree of CommonJS modules under `build/modules` which you can drop into any environment or packaging tool that supports CommonJS.
21
17
-We have instructions for building from master [in our GitHub repository](https://github.com/facebook/react). We build a tree of CommonJS modules under `build/modules` which you can drop into any environment or packaging tool that supports CommonJS.
22
23
## In-browser JSX Transform
24
25
If you like using JSX, we provide an in-browser JSX transformer for development [on our download page](/react/downloads.html). Simply include a `<script type="text/jsx">` tag to engage the JSX transformer. Be sure to include the `/** @jsx React.DOM */` comment as well, otherwise the transformer will not run the transforms.
26
23
-**Warning:** the in-browser JSX transformer is fairly large and is extra computation. Do not use it in production -- see the next section.
27
+> Note:
28
+>
29
+> The in-browser JSX transformer is fairly large and results in extraneous computation client-side that can be avoided. Do not use it in production -- see the next section.
30
+
31
32
## Productionizing: Precompiled JSX
33
34
If you have [npm](http://npmjs.org/), you can simply run `npm install -g react-tools` to install our command-line `jsx` tool. This tool will translate files that use JSX syntax to plain JavaScript files that can run directly in the browser. It will also watch directories for you and automatically transform files when they are changed; for example: `jsx --watch src/ build/`. Run `jsx --help` for more information on how to use this tool.
35
36
+
37
## Helpful Open-Source Projects
38
39
The open-source community has built tools that integrate JSX with several build systems.