Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-matrix

0.0.6 • Public • Published

react-matrix

React Component for representing Matrixes.

Example

https://cirocosta.github.io/react-matrix

React Matrix

React.createClass({
  getInitialState: function () {
    return {
      matrix: [
        [0,0,0,0,0],
        [0,1,0,1,0],
        [0,1,1,1,0],
        [0,0,1,0,0],
        [0,0,0,0,0],
      ]
    }
  },
 
  render: function () {
    return (
      <Matrix squareSize={20} matrix={this.state.matrix} />
    );
  }
});

Keywords

none

Install

npm i react-matrix

DownloadsWeekly Downloads

15

Version

0.0.6

License

MIT

Last publish

Collaborators

  • avatar