Clone repo and install dependencies. You need to have yarn installed
git clone https://github.com/johannestretton37/react-template-generator.git
cd reactGenerator/
yarn install
Create a symlink
yarn link
Make the app executable
chmod +x index.js
Execute the script from the folder where you want to generate the React Component. This will create a folder named ComponentName with a simple react template class.
rg ComponentName
You can specify a path if you want, relative to your current directory. Any non existing folders will be automatically created.
rg path/to/ComponentName