reactgen
v1.0.8
Published
React Component Generator
Downloads
12
Readme
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'