Skip to content

Command line interface to initialize empty ES8 React components

License

Notifications You must be signed in to change notification settings

glarivie/create-react-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Command line interface to initialize empty ES8 React components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published