Clone repo and install dependencies. You need to have yarn installed
git clone https://github.com/johannestretton37/react-template-generator.git
cd reactGenerator/
yarn installCreate a symlink
yarn linkMake the app executable
chmod +x index.jsExecute 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 ComponentNameYou can specify a path if you want, relative to your current directory. Any non existing folders will be automatically created.
rg path/to/ComponentName