# make-react-component-skeleton

> makeReactComponentSkeleton is simple function that make react component skeleton

Latest version **1.1.0** (published 2018-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-react-component-skeleton
pnpm add make-react-component-skeleton
yarn add make-react-component-skeleton
bun add make-react-component-skeleton
```

Provides the command `mkcpnt`.

## 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.0 |
| Published | 2018-07-23 |
| First published | 2018-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | minung.han |
| Maintainers | hmu332233 |
| Keywords | react, skeleton, makeReactComponent |

## Links

- npm: https://www.npmjs.com/package/make-react-component-skeleton
- Repository: https://github.com/hmu332233/react.makeReactComponentSkeleton
- Homepage: https://github.com/hmu332233/react.makeReactComponentSkeleton#readme
- Issues: https://github.com/hmu332233/react.makeReactComponentSkeleton/issues
- npm.io page: https://npm.io/package/make-react-component-skeleton

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.16.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-07-23
- 1.0.1 — 2018-07-09
- 1.0.0 — 2018-07-07
- 0.1.1 — 2018-07-07
- 0.1.0 — 2018-07-07

## README

## makeReactComponentSkeleton

makeReactComponentSkeleton is simple function that make react component skeleton

### install
```bash
$ npm install -g make-react-component-skeleton
```

### usage
```
 Usage: mkcpnt [options]

  Options:

    -n, --name [name]        component name to be created. (default: ExampleComponent)
    -t, --type [type]        component type to be created. "class" or "function" (default: class)
    -p, --path [path]        path where component will be created. (default: ./)
    -j, --jstype [jstype]    component file extension to be created. (default: jsx)
    -c, --csstype [csstype]  style file extension to be created. (default: scss)
    -v, --version            output the version number
    -S, --single             if include this, only component is made
    -h, --help               output usage information
```

### example

#### basic example

```bash
$ mkcpnt -n Input
```

- Structure of the created directory

```
Input
|-- Input.jsx
|-- Input.scss
|-- index.js
```

- jsx -- class type

```js
import React from 'react';
import PropTypes from 'prop-types';
import styles from './Input.scss';

class Input extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
    };
  }
  render() {
    return (
    );
  }
}

Input.propTypes = {
};
Input.defaultProps = {
};

export default Input;
```

- index

```js
import Input from './Input';

export default Input;
```


#### function example

```bash
$ mkcpnt -n Input -t function
```
Structure of the created directory is same

- jsx -- function type

```js
import React from 'react';
import PropTypes from 'prop-types';
import styles from './Input.scss';

const Input = props => {
  return (
  );
}

Input.propTypes = {
};
Input.defaultProps = {
};

export default Input;
```

#### file extension example

```bash
$ mkcpnt -n Input -j js -c css
```

- result

```
Input
|-- Input.js
|-- Input.css
|-- index.js
```

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