@samitouri / QOS-React-2 / commits / aedfa3011e

update react example basic-jsx-precompile comand line on markdown file,new version of babel needed a react presets dependency.

leeyoungalias committed Jan 16, 2016 at 22:53 UTC aedfa3011e0c9cbe63438897f3179d6d4e8c1be2
1 file changed +4 -3
examples/basic-jsx-precompile/index.html
+4 -3
@@ -11,9 +11,10 @@
11 <p>
12 If you can see this, React is not running. Try running:
13 </p>
14 - <pre>npm install -g babel
14 + <pre>npm install -g babel-cli
15 cd examples/basic-jsx-precompile/
16 -babel example.js --out-dir=build</pre>
16 +npm install babel-preset-react
17 +babel example.js --presets react --out-dir=build</pre>
18 </div>
19 <h4>Example Details</h4>
20 <p>This is written with JSX in a separate file and precompiled to vanilla JS by running:</p>
@@ -25,8 +26,8 @@ babel example.js --out-dir=build</pre>
26
27 <p><i>With Babel 6.0 or higher</i></p>
28 <pre>npm install -g babel-cli
28 -npm install babel-preset-react
29 cd examples/basic-jsx-precompile/
30 +npm install babel-preset-react
31 babel example.js --presets react --out-dir=build</pre>
32 <p>
33 Learn more about React at