conway-react
v1.0.4
Published
Conway game.
Downloads
1
Readme
conway-react
Conway game for react.
In this Demo you may get familiar with how the component works.
Installation
react version >= 16.8
npm i conway-react
Import
import Conway from 'conway-react';
Usage
<Conway />
or
<Conway
rowSize={30}
colSize={30}
sideWidth={600}
timeSLot={50}
className="myClassName"
>
Attributes
| Attributes | Type | Default | Description | | ---------- | ---- | ------- | ----------- | | rowSize | number | 30 | Number of rows | | colSize | number | 30 | Number of columns | | sideWidth | number | 600 | Table height and width (pixels) | | timeSlot | number | 50 | Game update time interval (ms) | | className | string | '' | It's the class of all elements (BEM) |