1.2.1 • Published 9 months ago

create-new-react-component v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

create-new-react-component

A command-line interface (CLI) tool to quickly generate React components with optional TypeScript support and CSS styles.

Installation

npm install create-new-react-component --save-dev

Usage

create-new-react-component <componentName> [options]

Options

  • --style : Create a style sheet file for the component, if no suffix is provided, the default is css
  • --lang : Choose the file style (js or ts), if no language is provided, the default is js

Help Command

For more information, run the following command:

create-new-react-component --help

or

create-new-react-component -h

to see the help message.

Examples

# Create a JavaScript component with default options
create-new-react-component MyComponent

# Create a JavaScript component with scss styles
create-new-react-component MyComponent --style scss

# Create a TypeScript component with other default options
create-new-react-component MyComponent --lang ts

# Create a TypeScript component with scss styles
create-new-react-component MyComponent --style scss --lang ts

References

1.2.1

9 months ago

1.2.0

10 months ago

1.1.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago