diff --git a/examples/basic-commonjs/index.html b/examples/basic-commonjs/index.html index a63f3016d3..71cf3c96c1 100644 --- a/examples/basic-commonjs/index.html +++ b/examples/basic-commonjs/index.html @@ -18,8 +18,16 @@

Example Details

-

This is written with JSX in a CommonJS module and precompiled to vanilla JS by running:

-
npm start
+

This is written with JSX in a CommonJS module and precompiled to vanilla JS by navigating to the example + directory +

cd /path/to/react/examples/example-name
+ and running +
npm start
+
+ (don't forget to install first) +
npm install
+
+

Learn more about React at facebook.github.io/react. diff --git a/examples/basic-jsx-external/index.html b/examples/basic-jsx-external/index.html index ec93600601..f95f20f837 100644 --- a/examples/basic-jsx-external/index.html +++ b/examples/basic-jsx-external/index.html @@ -10,12 +10,17 @@

Basic Example with External JSX

- If you can see this, React is not working right. This is probably because you're viewing - this on your file system instead of a web server. Try running + If you can see this, React is not working right. This is probably because you're viewing + this on your file system instead of a web server.
+ Try navigating to the React root +

+          cd /path/to/react
+        
+ and running
           python -m SimpleHTTPServer
         
- and going to http://localhost:8000/. + and going to http://localhost:8000/examples/basic-jsx-external/.

Example Details

diff --git a/examples/basic-jsx-precompile/index.html b/examples/basic-jsx-precompile/index.html index 5b7c1eb9e5..f74a7379a6 100644 --- a/examples/basic-jsx-precompile/index.html +++ b/examples/basic-jsx-precompile/index.html @@ -17,9 +17,17 @@ babel example.js --out-dir=build

Example Details

This is written with JSX in a separate file and precompiled to vanilla JS by running:

+ +

With Babel lower than 6.0

npm install -g babel
 cd examples/basic-jsx-precompile/
 babel example.js --out-dir=build
+ +

With Babel 6.0 or higher

+
npm install -g babel-cli
+npm install babel-preset-react
+cd examples/basic-jsx-precompile/
+babel example.js --presets react --out-dir=build

Learn more about React at facebook.github.io/react.