Tools to get started with react quickly
$ npm install react-hero --save
You must have and index.html file in the current directory
$ touch index.html
const ReactHero = require('react-hero');
ReactHero.createServer('entry.js', 'assets/bundle.js', 'localhost', 8080)
<html>
<body>
...
<script src="http://localhost:8080/assets/bundle.js"></script>
</body>
</html>
NOTE: Make sure host, port, and outputFile match what was passed to
.createServer(...)
Visit http://localhost:8080
NOTE: Make sure host and port are the ones specified when creating the server
const ReactHero = require('react-hero');
ReactHero.createDistribution('entry.js', 'dist/bundle.js')