grc

grc (generate react component) is a CLI tool that creates React components for me

🚀 How to use

  1. Install dependencies:
npm i
  1. Change templates according to your needs in src/generateComponentFiles.js (or use my templates)

  2. Install this utility globally:

npm i -g .
  1. Generate Button component in src/component folder:
grc Button -p src/components
  1. Save path using -key option so you don’t have to write path every time:
grc Button -p very/long/path/to/your/components/folder -k cmp
  1. Generate Button component using key:
grc Button -k cmp

⚙️ Options

-p, --path   # path to components folder
-k, --key    # key to path from config file

GitHub

View Github