create-react-folder-component
v1.0.0
Published
Creates single react component folder structure
Downloads
6
Readme
About
Creates react component folder structure with one command. You can either use crc or create-react-comp
Creating an Component
npm install -g create-react-comp
crc MyComponent
crc example/nested/MyComponent
Component folder structure
MyComponent
├── index.js
├── MyComponent.js
├── MyComponent.css
├── MyComponent.test.js
Options
~/Projects$ create-react-comp --help
or
~/Projects$ crc --help
Usage: create-react-comp [options]
Options:
-V, --version output the version number
-l, --less Adds .less file to component
-s, --sass Adds .sass file to component
-n, --nocss No css file
-p, --proptypes Adds prop-types to component
-u, --uppercase Component files start on an uppercase letter
-h, --help output usage information
Author
License
MIT