This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ node_modules/.bin/browserify --extension=.jsx src/**/*.jsx -o bundle.js -t [ babelify --presets [ es2015 react ] ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body> | |
| <div id="app"></div> | |
| <script type="text/javascript" src="bundle.js"></script> | |
| </body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ls -lh | |
| total 1328 | |
| -rw-r--r-- 1 Roman home 654K Feb 21 11:43 bundle.js | |
| drwxr-xr-x 3 Roman home 102B Feb 20 14:57 dist | |
| -rw-r--r-- 1 Roman home 1.3K Feb 21 14:54 gulpfile.js | |
| drwxr-xr-x 444 Roman home 15K Feb 20 11:32 node_modules | |
| -rw-r--r-- 1 Roman home 611B Feb 21 11:32 package.json | |
| drwxr-xr-x 5 Roman home 170B Feb 20 16:53 src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ node_modules/.bin/browserify --extension=.jsx src/**/*.jsx -o bundle.js -t [ babelify --presets [ es2015 react ] ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Greeter from './greeter'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: Cannot find module './greeter' from ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ node_modules/.bin/browserify src/**/*.jsx -o bundle.js -t [ babelify --presets [ es2015 react ] ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm install react react-dom --save-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ReactDOM from 'react-dom'; | |
| import React from 'react'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm install babel-preset-es2015 babel-preset-react --save-dev |