Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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