generator-react2

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i generator-react2

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.84 kB

Total Files

7

Last publish

Collaborators

  • paulserraino