Skip to content

Commit

Permalink
Merge pull request #5865 from leeyoungalias/master
Browse files Browse the repository at this point in the history
update react example basic-jsx-precompile comand line
  • Loading branch information
zpao committed Jan 18, 2016
2 parents c7808ca + aedfa30 commit ae5ff24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/basic-jsx-precompile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ <h1>Basic Example with Precompiled JSX</h1>
<p>
If you can see this, React is not running. Try running:
</p>
<pre>npm install -g babel
<pre>npm install -g babel-cli
cd examples/basic-jsx-precompile/
babel example.js --out-dir=build</pre>
npm install babel-preset-react
babel example.js --presets react --out-dir=build</pre>
</div>
<h4>Example Details</h4>
<p>This is written with JSX in a separate file and precompiled to vanilla JS by running:</p>
Expand All @@ -25,8 +26,8 @@ <h4>Example Details</h4>

<p><i>With Babel 6.0 or higher</i></p>
<pre>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</pre>
<p>
Learn more about React at
Expand Down

0 comments on commit ae5ff24

Please sign in to comment.