File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
examples/basic-jsx-precompile Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
1515cd 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
2929cd examples/basic-jsx-precompile/
30+ npm install babel-preset-react
3031babel example.js --presets react --out-dir=build</ pre >
3132 < p >
3233 Learn more about React at
You can’t perform that action at this time.
0 commit comments