2.1.4 • Published 6 years ago

@hqro/create-react-component v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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
2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago