0.1.9 • Published 6 years ago

digital230-react-component v0.1.9

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

Generate React Component

Usage: react-component <name> [options]

  Options:

    -h, --help                output usage information
    -V, --version             output the version number
    -e, --ext [extension]  file extension [default: js]
    -p, --pure [extension], generate react PureComponent [default: Component]
    -d, --dir [extension], generate directory structure

Install

npm i -g @digital230/react-component

Example

react-component Alert -e jsx -p -d

will create

Alert
├── Alert.jsx