Command line interface to initialize empty ES8 React & React Native components
npm install @hqro/create-react-componentCommand line interface to initialize empty ES8 React and React Native components
``bash`
npm install --global @hqro/create-react-component
`bash
Usage: crc [options]
Options:
-V, --version Output the version number
-n, --name
-d, --dest
-L, --stateless Apply stateless component template
-F, --statefull Apply statefull component template
-X, --redux Connect your component with Redux
-W, --web Create React Web component
-N, --native Create React Native component
-C, --css Create CSS stylesheet
-S, --scss Create SCSS stylesheet
-h, --help Output usage information
`
Generate a statefull component connected to the Redux store and using CSS stylesheet:
`bash`
cd src/components
crc -n Test --web --css --statefull --redux
Output:
`bash``
Test
├── Test.js
├── Test.css
└── index.js