generator-rockets-react-component

0.1.0 • Public • Published

generator-rockets-react-component NPM version Build Status Dependency Status

A react component generator

Installation

First, install Yeoman and generator-rockets-react-component using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-rockets-react-component

Generating Components

To generate a new component in your current directiory, run:

yo rockets-react-component

You will be prompted to specify some information about your new component:

  • Component Name: string
  • Connect to Redux: Y/n

A basic component with have the following directory structure:

└───NewComponent/
    ├───NewComponentContainer.js
    ├───NewComponentView.js
    └───index.js

A component with redux enabled:

└───NewComponent/
    ├───NewComponentContainer.js
    ├───NewComponentView.js
    ├───actions.js
    ├───actionTypes.js
    ├───reducer.js
    └───index.js

License

MIT © Fergus Farrell

Package Sidebar

Install

npm i generator-rockets-react-component

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

8.43 kB

Total Files

10

Last publish

Collaborators

  • fergusfrl