react-geno
v0.0.4
Published
A cli-tool for generating react components
Readme
React Geno
A cli-tool to generate React components and folders.
Published on NPM: https://www.npmjs.com/package/react-geno
Installation
npm install -g react-genoOptions
| Option | Description | Default | | :---: | :---: | :---: | | -n, --name | Name of the component | | | -j, --js | Generate a .jsx file instead of .tsx | false | | -c, --css | Generate a .css file instead of .scss | false |
Usage
rg -n MyComponent
# Generates a folder with the following structure:
MyComponent
├── MyComponent.tsx
├── MyComponent.module.scss
└── index.ts
rg -n MyComponent -j -c
# Generates a folder with the following structure:
MyComponent
├── MyComponent.jsx
├── MyComponent.module.css
└── index.ts
rg -n MyComponent -j
# Generates a folder with the following structure:
MyComponent
├── MyComponent.jsx
├── MyComponent.module.scss
└── index.ts
