reactgen

1.0.8 • Public • Published

reactgen

Generate React component

Requirements

  • Node >= 5.0.0

Installation

npm install reactgen -g

Usage

reactgen <filename> <directory> [option]

Example

reactgen AwesomeFile awesome -C

Options:

-P, --presentational  Create inline function component
-C, --container       Create class-based component

Default Path

You can set your default root path by creating .env file in your root directory and add REACTGEN_DEFAULT_ROOT_PATH = 'your/path'

Readme

Keywords

none

Package Sidebar

Install

npm i reactgen

Weekly Downloads

3

Version

1.0.8

License

ISC

Last publish

Collaborators

  • junedomingo