npm install -g spin-react
spin-react init [project name]
- Creates the directory structure and installs all of the dependencies.
Use npm start to start up the webpack-dev-server.
* Side note, the installation of all of the dependencies is much
faster if you have Yarn.
- public
- bundle.js
- index.html
- src
- index.jsx
- package.json
- webpack.config.js
- .gitignore
spin-react class [name]
- creates a .jsx file in your current directory with the same name as the component
supplied by [name]. Boilerplate code provided within the file.
spin-react stateless [name]
Same as class but a stateless component as opposed to a class component