JSPM

conway-react

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q25545F
  • License MIT

Conway game.

Package Exports

  • conway-react

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (conway-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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)