1.2.0 • Published 4 years ago
com-react v1.2.0
Com-React
com-react is a React-Component-Generator that generates a file with An Arrow Function Component for React
(on NPM: com-react)
Quick Installation:
NPM (Globally)
npm install -g com-reactor (Locally)
npx com-reactOnce 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 --versionor
com-react -VHow to Use
You can run com-react from the root of your application using
com-react <FileName>or
com-react <FolderName>/<FoldersName> <FileName>Examples
com-react cardThis command will generate a Card.js File and Open It. inside the src/ folder of the react project.
com-react components cardThis 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 cardNote
When the File generates it will be automatically opened in the vscode IDE. Other IDE or Text Editors not supported yet.