# react-quick-comp

> A tool to facilitate the quick creation of React components via the command line.

Latest version **1.1.4** (published 2023-07-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-quick-comp
pnpm add react-quick-comp
yarn add react-quick-comp
bun add react-quick-comp
```

Provides the commands `rqc`, `react-quick-comp`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2023-07-31 |
| First published | 2023-07-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Max Wesley |
| Maintainers | maxwesley |
| Keywords | react, react-native, next, javascript, typescript, component, react-component, react-lib, cli, command-line, generator, react-components, development, styled-components |

## Links

- npm: https://www.npmjs.com/package/react-quick-comp
- Repository: https://github.com/MaxWesley/react-quick-comp
- Homepage: https://github.com/MaxWesley/react-quick-comp#readme
- Issues: https://github.com/MaxWesley/react-quick-comp/issues
- npm.io page: https://npm.io/package/react-quick-comp

## Dependencies (3)

- [ejs](https://npm.io/package/ejs.md) ^3.1.9
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2023-07-31
- 1.1.3 — 2023-07-31
- 1.1.2 — 2023-07-31
- 1.1.1 — 2023-07-31
- 1.1.0 — 2023-07-29

## README

## react-quick-comp

A tool to facilitate the quick creation of React components via the command line.

### Description

`react-quick-comp` is a tool aimed at simplifying the creation of new React components in projects. With just one command, you can quickly generate the basic structure of a new component, allowing you to focus more on the specific logic of the component and less on the initial setup.

### Installation

To install the `react-quick-comp` tool globally, execute the following command:

```bash
npm install -g react-quick-comp
```

### Usage

**Note: Before running the following command, make sure to open the folder where you want to create the new component in your terminal.**

To create a new component, use the following command:

```bash
rqc create ComponentName
```

This will create a folder with the component name, containing the `index.js` file and the basic structure of the component.

### Documentation

#### Available flags:

- `--ts`: Creates a TypeScript component with an interface.
- `--css`: Creates a component with a style file (using styled-components).
- `--all`: Creates a component with a test file and style.

### Examples

Here are some examples of how you can use `react-quick-comp` to streamline your workflow:

1. Create a basic component:
```bash
rqc create Button
```

2. Create a TypeScript component with an interface:
```bash
rqc create Input --ts
```

3. Create a component with a style file using styled-components:
```bash
rqc create Card --css
```

3. Create a React-Native component with style and test file usign Typescript:
```bash
rqc create Card --native --ts --all
```

### Contribution

Contributions are welcome! If you wish to collaborate with the project, follow the steps below:

1. Fork the `react-quick-comp` repository on GitHub.
2. Create a new branch with your modifications: `git checkout -b my-contribution`.
3. Make the desired changes and commit: `git commit -m "My contribution"`.
4. Send your changes to the remote repository: `git push origin my-contribution`.
5. Open a Pull Request so that your changes can be reviewed and incorporated into the project.

### Contributors

- [Max Wesley](https://github.com/MaxWesley) - Author and maintainer.
- [Cristian J. Ambrosi](https://github.com/cjambrosi) - Add husk with commitlint, update gitignore file and add .editorconfig.

### License

This project is licensed under the [MIT License](LICENSE).

### Contact

If you have any questions, suggestions, or need to get in touch, feel free to use one of the following methods:

- E-mail: maxwesleydev@gmail.com
- LinkedIn: [Max Wesley](https://www.linkedin.com/in/max-wesley-0b721a140/)
- GitHub: [MaxWesley](https://github.com/MaxWesley)

### GitHub

- Repository: [react-quick-comp](https://github.com/MaxWesley/react-quick-comp)

### NPM

- Package: [react-quick-comp](https://www.npmjs.com/package/react-quick-comp)

---
_Source: https://npm.io/package/react-quick-comp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
