Skip to content

Commit aedfa30

Browse files
committed
update react example basic-jsx-precompile comand line on markdown file,new version of babel needed a react presets dependency.
1 parent 2f792d5 commit aedfa30

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/basic-jsx-precompile/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ <h1>Basic Example with Precompiled JSX</h1>
1111
<p>
1212
If you can see this, React is not running. Try running:
1313
</p>
14-
<pre>npm install -g babel
14+
<pre>npm install -g babel-cli
1515
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>
1718
</div>
1819
<h4>Example Details</h4>
1920
<p>This is written with JSX in a separate file and precompiled to vanilla JS by running:</p>
@@ -25,8 +26,8 @@ <h4>Example Details</h4>
2526

2627
<p><i>With Babel 6.0 or higher</i></p>
2728
<pre>npm install -g babel-cli
28-
npm install babel-preset-react
2929
cd examples/basic-jsx-precompile/
30+
npm install babel-preset-react
3031
babel example.js --presets react --out-dir=build</pre>
3132
<p>
3233
Learn more about React at

0 commit comments

Comments
 (0)