1.0.8 • Published 9 years ago
reactgen v1.0.8
reactgen
Generate React component
Requirements
- Node >= 5.0.0
Installation
npm install reactgen -gUsage
reactgen <filename> <directory> [option]Example
reactgen AwesomeFile awesome -COptions:
-P, --presentational Create inline function component
-C, --container Create class-based componentDefault Path
You can set your default root path by creating .env file in your root directory and add REACTGEN_DEFAULT_ROOT_PATH = 'your/path'