https://github.com/edamghy/react-component-generator
com-react is a React-Component-Generator that generates a file with An Arrow Function Component for React
https://github.com/edamghy/react-component-generator
cli com-react command-line command-line-tool component component-generator generator react reactjs
Last synced: about 2 months ago
JSON representation
com-react is a React-Component-Generator that generates a file with An Arrow Function Component for React
- Host: GitHub
- URL: https://github.com/edamghy/react-component-generator
- Owner: EDAMGHY
- Created: 2022-02-18T11:34:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-25T14:48:48.000Z (about 3 years ago)
- Last Synced: 2024-04-27T02:25:41.602Z (about 1 year ago)
- Topics: cli, com-react, command-line, command-line-tool, component, component-generator, generator, react, reactjs
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Com-React
com-react is a React-Component-Generator that generates a file with An Arrow Function Component for React
(on NPM: [com-react](https://www.npmjs.com/package/com-react))
## Quick Installation:
### NPM (Globally)
```
npm install -g com-react
```#### or (Locally)
```
npx com-react
```Once You have installed **com-react** you can use it from anywhere in your PC.
Run the following command to make sure that you have the latest version```
com-react --version
```#### or
```
com-react -V
```## How to Use
You can run **com-react** from the root of your application using
```
com-react
```#### or
```
com-react /
```## Examples
```
com-react card
```This command will generate a `Card.js` File and Open It. inside the `src/` folder of the react project.
---
```
com-react components card
```This command creates a file named `Card.js` inside the `components/` folder all of this will be inside the `src/` folder. It also supports nested folders like
```
com-react components/cards card
```---
## Note
When the File generates it will be automatically opened in the vscode IDE.
Other IDE or Text Editors not supported yet.