conway-react
Conway game for react.
Demo you may get familiar with how the component works.
In thisInstallation
react version >= 16.8
npm i conway-react
Import
;
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) |