# rcli-tools

> create component react

Latest version **1.1.6** (published 2019-01-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install rcli-tools
pnpm add rcli-tools
yarn add rcli-tools
bun add rcli-tools
```

Provides the command `rcli`.

## 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.6 |
| Published | 2019-01-08 |
| First published | 2019-01-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 21.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andriamiandrisoa Tokiniaina Eddy |
| Maintainers | zaza_dago |
| Keywords | rcli-tools, react-tools, rcli, cli-react, generate component react, react component, cli-react |

## Links

- npm: https://www.npmjs.com/package/rcli-tools
- Repository: https://github.com/babakoto/rcli
- Homepage: https://github.com/babakoto/rcli#readme
- Issues: https://github.com/babakoto/rcli/issues
- npm.io page: https://npm.io/package/rcli-tools

## Dependencies (1)

- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2019-01-08
- 1.1.5 — 2019-01-06
- 1.1.4 — 2019-01-06
- 1.1.3 — 2019-01-06
- 1.1.2 — 2019-01-06
- 1.1.1 — 2019-01-06
- 1.1.0 — 2019-01-06
- 1.0.8 — 2019-01-06
- 1.0.7 — 2019-01-06
- 1.0.6 — 2019-01-06
- 1.0.5 — 2019-01-06
- 1.0.4 — 2019-01-06
- 1.0.3 — 2019-01-06
- 1.0.2 — 2019-01-06
- 1.0.1 — 2019-01-05
- … 1 more at https://npm.io/package/rcli-tools/versions

## README

# rcli-tools

rcli-tools is a basic cli to generate a react component stateless or statefull

### Install:
`npm i rcli-tools -g`

### Command 
`rcli -cp -f [componentName]`

* -cp : place your component in src/**components**/[componentName]"
* -ct : place your component in src/**containers**/[componentName]"
* -f : statefull
* -l : stateless

For exemple you can place your Component in **MyPackages** folder

`rcli MyPackages -f Button`

#### create a component stateless 
`rcli -cp -l Button`

#### create a component statefull 
`rcli -cp -f Button`

![button](https://github.com/babakoto/rcli-tools/blob/master/button.PNG)

### Button.js 
    import React, { Component } from 'react'
    import './Button.css'
    
    class Button extends Component {
        render() {
            return (
               <div>
                  Button
               </div>
        )
      }
    }
    export default Button
    

#### index.js
    export {default} from "./Button"

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