# react-game-of-life

> React game of life component.

Latest version **3.1.0** (published 2021-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-game-of-life
pnpm add react-game-of-life
yarn add react-game-of-life
bun add react-game-of-life
```

## 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 | 3.1.0 |
| Published | 2021-05-05 |
| First published | 2016-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 49.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | David Lam |
| Maintainers | lamdav |
| Keywords | react, game-of-life, react-component |

## Links

- npm: https://www.npmjs.com/package/react-game-of-life
- Repository: https://github.com/lamdav/react-game-of-life
- Homepage: https://github.com/lamdav/react-game-of-life#readme
- Issues: https://github.com/lamdav/react-game-of-life/issues
- npm.io page: https://npm.io/package/react-game-of-life

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## 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

- 3.1.0 (latest) — 2021-05-05
- 3.0.0 — 2018-06-17
- 2.1.0 — 2017-05-11
- 2.0.2 — 2016-11-15
- 2.0.1 — 2016-11-15
- 2.0.0 — 2016-11-14
- 1.1.3 — 2016-07-15
- 1.1.2 — 2016-07-09
- 1.1.1 — 2016-07-09
- 1.1.0 — 2016-07-09
- 1.0.1 — 2016-07-08
- 1.0.0 — 2016-07-08

## README

# react-game-of-life
A React Component depicting the Conway's Game of Life.

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).

[Demo](https://lamdav.github.io/react-game-of-life/)

# Note:
This update has removed all `requirejs` in favor of es6 styled imports. If `requirejs` is required for your project, install 1.1.3.

# Install:
`npm install react-game-of-life`

# Test:
Clone the repo and run the command `npm start`.
This will run the dev-server and showcase a small component of the LifeManager.

# How to use:
```javascript
import React, {Component} from "react";
import ReactDOM from "react-dom";
import LifeManager from "react-game-of-life";

ReactDOM.render(<LifeManager />, document.findElementById("game"));
```

# Props:
| prop              | description                                         | default | type   |
|:-----------------:|:---------------------------------------------------:|:-------:|:------:|
| width             | defines the width of the board                      | 20      | number |
| height            | defines the height of the board                     | 20      | number |
| fps               | defines the number of frames to refesh every second | 60      | number |
| lineColor         | defines the color of the cell's outline             | cyan    | string |
| cellActiveColor   | defines the cell's alive status color               | gray    | string |
| cellInActiveColor | defines the cell's inactive status color            | black   | string |

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