# create-react-organism

> Tool to easily create react-organism smart components

Latest version **0.2.0** (published 2017-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-react-organism
pnpm add create-react-organism
yarn add create-react-organism
bun add create-react-organism
```

Provides the command `create-react-organism`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-07-17 |
| First published | 2017-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 221 |
| Author | Patrick Smith |
| Maintainers | burntcaramel |

## Links

- npm: https://www.npmjs.com/package/create-react-organism
- Repository: https://github.com/RoyalIcing/react-organism
- Homepage: https://github.com/RoyalIcing/react-organism#readme
- Issues: https://github.com/RoyalIcing/react-organism/issues
- npm.io page: https://npm.io/package/create-react-organism

## Dependencies (3)

- [creed](https://npm.io/package/creed.md) ^1.2.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^5.1.0

## Recent versions

- 0.2.0 (latest) — 2017-07-17
- 0.1.2 — 2017-06-16
- 0.1.1 — 2017-06-16
- 0.1.0 — 2017-06-16

## README

# create-react-organism

Easily create [react-organism](https://github.com/RoyalIcing/react-organism) smart components.

## Usage

```sh
yarn create react-organism CustomName

# or

npm i -g create-react-organism
create-react-organism CustomName
```

Creates an **organisms** directory in your project, and a directory for your organism inside there: **[/src]/organisms/CustomName/**

Three files are created inside:
- **[CustomName].js:** a pure React component that renders the given state as props, as well as call action handlers defined in **state.js**
- **state.js:** a list of exported functions that handle the progression of state, from its `initial` form, to `load` data in asynchronously, to other action handlers that are called in response to events (e.g. onClick, onChange, etc).
- **index.js:** connects the pure component and state together and exports it for easy use.

To use the organism, simply import it:

```javascript
// pages/example.js
import CustomName from '../organisms/CustomName'

export default () => (
    <div>
        <CustomName prop1='one' />
    </div>
)
```

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