0.1.0 • Published 5 years ago

generator-react2 v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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

  1. component name
  2. 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

0.1.0

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago