1.0.8 • Published 2 years ago

component-generator-react-ts v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React Typescript Component Generator

React Typescript Component Generator is a cli for generating react component for typescript based architecture.

Based on packet "react-typescript-component-generator" "Hafeez Hamza hafeez1042@gmail.com"

Install

  • Global installation

    # Using yarn package manager
    $ yarn global add component-generator-react-ts
    
    # Using npm package manager
    $ npm install --global component-generator-react-ts

Usage

<componentName> is the name of component that can be with or without directory

eg:

  • src/webparts/webpartName/components/ComponentName

    this will generate component named ComponentName in the directory ./src/webparts/webpartName/components/ComponentName

  • ComponentName

    this will generate component named ComponentName in the directory ./ComponentName

Generate React Stateless Component

$ grc statelessComponent <componentName>
# or
$ grc s <componentName>

Generate React Function Component

$ grc functionComponent <componentName>
# or
$ grc f <componentName>

Generate React Class Component

$ grc classComponent <componentName>
# or
$ grc c <componentName>

Generate React Redux Container Component

$ grc containerComponent <componentName>
# or
$ grc r <componentName>

License

React Typescript Component Generator is MIT licensed.

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago