Mrc : Make React Component
Mrc generates simple React function components. #useHooks
Installation
npm i -g @tutanck/mrc
Usage
mrc ComponentName /path/to/subfolder
Arguments
The command takes 1 required arg and 1 optional arg :
- componentName is required.
-
path/to/subfolder is optional
and represents the path to the component inside the /src directory.
Examples
-
mrc FooBar
Creates a function component 'FooBar' inside the '/src' directory.
-
mrc FooBar /components
Creates a functional component 'FooBar' inside the 'src/components' directory.