1.0.4 • Published 4 years ago

conway-react v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

AttributesTypeDefaultDescription
rowSizenumber30Number of rows
colSizenumber30Number of columns
sideWidthnumber600Table height and width (pixels)
timeSlotnumber50Game update time interval (ms)
classNamestring''It's the class of all elements (BEM)