@hqro/create-react-component

2.1.4 • Public • Published

create-react-component

Command line interface to initialize empty ES8 React and React Native components

Installation

npm install --global @hqro/create-react-component

Usage information

  Usage: crc [options]


  Options:

    -V, --version       Output the version number
    -n, --name <name>   Component name (default: Test)
    -d, --dest <path>   Component destination (default: current path)
    -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

Example

Generate a statefull component connected to the Redux store and using CSS stylesheet:

cd src/components
crc -n Test --web --css --statefull --redux

Output:

  Test
  ├── Test.js
  ├── Test.css
  └── index.js

Readme

Keywords

none

Package Sidebar

Install

npm i @hqro/create-react-component

Weekly Downloads

0

Version

2.1.4

License

MIT

Unpacked Size

13.5 kB

Total Files

22

Last publish

Collaborators

  • hqro