gen-comp
v1.0.1
Published
gen-comp is a command line utility that enables you to generate a stateful component or stateless component
Downloads
1
Maintainers
Readme
gen-comp
Are you tired of creating a file then writing boilerplate code that will take your time and slow down your thinking process use gen-comp. gen-comp is a lean React Native Component Generator. A single command will create a file with boilerplate code for you.
How to use gen-comp
Install it globally, so that it works in any directory of your projects.
npm i gen-comp -g
Just like that gen-comp is ready to generate react-native components for you check out how to use using command
generate --help
Example
generate -l Welcome
Example above will generate a stateless/function component called Welcome in the active directory
generate -f Welcome
Example above will generate a statefull/class component called Welcome in the active directory