# react-pdca

> PDCA status icon for React

Latest version **1.2.3** (published 2017-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-pdca
pnpm add react-pdca
yarn add react-pdca
bun add react-pdca
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2017-07-23 |
| First published | 2017-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steffen Hansen |
| Maintainers | sgnh |
| Keywords | react, pdca |

## Links

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

## 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.2.3 (latest) — 2017-07-23
- 1.2.2 — 2017-05-27
- 1.2.1 — 2017-05-27
- 1.2.0 — 2017-05-26
- 1.1.1 — 2017-05-26
- 1.1.0 — 2017-05-26
- 1.0.1 — 2017-05-25
- 1.0.0 — 2017-05-25

## README

# react-pdca [![Build Status](https://circleci.com/gh/sgnh/react-pdca.svg?style=shield)](https://circleci.com/gh/sgnh/react-pdca/tree/master)
![PDCA](https://github.com/sgnh/react-pdca/raw/master/docs/pdca.png "PDCA")

## Installation
```
npm install --save react-pdca
```

## Demo
Working demo on CodePen: [React PDCA](https://codepen.io/sgnh/full/LyaaYK/)

## Example
```javascript
import React, { Component } from 'react';
import PDCA from 'react-pdca';

class PDCAContainer extends Component {
  constructor(props) {
    super(props);
    
    this.state = {
      planDisabled: false,
      doDisabled: false,
      checkDisabled: false,
      actDisabled: false,
    }
  }
  
  render() {
    return (
      <PDCA
        height="300px"
        width="300px"

        planDisabled={this.state.planDisabled}
        doDisabled={this.state.doDisabled}
        checkDisabled={this.state.checkDisabled}
        actDisabled={this.state.actDisabled}
        
        onPlanClick={() => this.setState({ planDisabled: false, doDisabled: true, checkDisabled: true, actDisabled: true })}
        onDoClick={() => this.setState({ planDisabled: false, doDisabled: false, checkDisabled: true, actDisabled: true })}
        onCheckClick={() => this.setState({ planDisabled: false, doDisabled: false, checkDisabled: false, actDisabled: true })}
        onActClick={() => this.setState({ planDisabled: false, doDisabled: false, checkDisabled: false, actDisabled: false })}
      />
    )
  }
}

export default PDCAContainer;
```

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