0.1.0 • Published 5 years ago
generator-react2 v0.1.0
Yo React
A Yeoman generator for generating React components.
npm install generator-react2
Documentation
yo react MyComponent ./path/to/components
By default yo-react will generate a stateful component with the following directory structure
/path/to/components
| MyComponent
| MyComponent.js
| MyComponent.spec.js
| index.js
Arguments
yo-react require two arugments
- component name
- path to component's folder
yo react [componentName] [/path/to/components]
Options
--stateless
(Boolean) - will generate a stateless functional component when set to true--propTypes
(Array) - will generate a list of propTypes. This is compatiable with Immutable.js--methods
(Array) - will generate component methods--info
(String) - will generate component info documentation
License
MIT