1.0.4 • Published 5 years ago
conway-react v1.0.4
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-reactImport
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) |