diff --git a/examples/basic-jsx-precompile/index.html b/examples/basic-jsx-precompile/index.html index f74a7379a668..53a84f876425 100644 --- a/examples/basic-jsx-precompile/index.html +++ b/examples/basic-jsx-precompile/index.html @@ -11,9 +11,10 @@

Basic Example with Precompiled JSX

If you can see this, React is not running. Try running:

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

Example Details

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

@@ -25,8 +26,8 @@

Example Details

With Babel 6.0 or higher

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

Learn more about React at