npm install generator-r-genFirst, install Yeoman and generator-r-gen using npm (we assume you have pre-installed node.js).
``bash`
npm install -g yo
npm install -g generator-r-gen
yo r-gen
Then start generating React goodies!
`bash`
yo r-gen:component
#### Command line options
To speed things up, you can pass options when first calling the generator. Example:
`bash`
yo r-gen:component --scss
The above will create the .scss file without prompting, but will prompt you for other options.
#### Available options
* --folder - Sets the creation of a folder to true--scss
* - Sets the creation of an associated scss file to true--cssModules
* - Sets the creation of a @CSSModules decorator to true--propTypes
* - Sets the generation of propTypes and defaultProps to true--observer
* - Sets the creation of an @observer decorator to true--all
* - Sets all of the above to true
`bash``
yo r-gen:store
MIT © [James Sear]()