The bash script that lets you to generate empty component
Use rc-new componentName
to generate a new functional (a.k.a. stateless) component
Use rc-new componentName c
to generate a new Class component
The script generate a new react component in the same directory as you are in and the name of the component folder is your componentName
, also it generates componentName.js
, componentName.scss
and componentName.test.js
files inside the component folder.
If you want to make a the script global:
Mac OS X - add the script file in to /usr/local/bin
folder