Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 740 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 740 Bytes

React Component Template Generator

Install

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

Usage

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